lua dev plugin for unreal engine 4 or 5
OTHER License
Bot releases are visible (Hide)
bug fixes:
local SluaTestCase=import('SluaTestCase');
local t=SluaTestCase()
for k, v in pairs(t) do
print("SluaTestCase iter", k, v)
end
print("SluaTestCase weakptr:", t.weakptr) --error: t.weakptr will be LuaArray instead of uobject type.
Published by zjhongxian 12 months ago
Published by zjhongxian 12 months ago
function LuaGameState:GetLifetimeReplicatedProps()
local FVectorType = import("Vector")
{ "Position", ELifetimeCondition.COND_SimulatedOnly, FVectorType},
end
before:
self.Position.X = 100
self.Position = self.Position
after:
self.Position.X = 100
Not need to write "self.Position = self.Position".
Published by zjhongxian about 1 year ago
Published by zjhongxian over 1 year ago
Stable version verified in PUBG Mobile.
1、Add AddLuaNetListener/RemoveLuaNetListener API for lua net property monitoring.
2、Optimise GC :The Override object of the Instance type performs cache processing when calling a Lua function through userdata to prevent generating a closure every time it is called.
3、UEnum optimization:UEnum type maybe got nil because FName Case Insensitive.
4、Add struct clone api,eg: FVector():clone()
5、fixed many bugs
Published by zjhongxian over 1 year ago
Published by zjhongxian over 1 year ago
Published by zjhongxian over 1 year ago
slua unreal 2.0.0 version.
Published by pangweiwei about 4 years ago
fix #344
fix #349
fix #350
fix #351
fix #352
fix #363
fix #364
many minor fixes
Published by pangweiwei about 4 years ago
fix building error on UE 4.24
add type information to CheckSelf while object had free.
fix #323
fix #330
fix #290
fix replace-all mistake to gc a value type
Published by pangweiwei over 4 years ago
fix #290
fix #306
fix value removed on luamap collected an element
fixed native memory leak while call ufuncClosure!
fix memory leak in LuaBase and compatible with UE 4.18
change LoadFileDelegate signature to return TArray
profiler support coroutine and optimize CPU cost of memory profile
Published by pangweiwei over 4 years ago
fix #288
fix #254
fix #251
fix #250
fix #252
fix #249
fix #241
fix #240
fix #239
fix invalid access of LuaArray and LuaMap
fix memory leak on push a struct value
fix link error when link with FFrame on some platform
Published by pangweiwei almost 5 years ago
fix #233
fix #235
Published by pangweiwei almost 5 years ago
add memory profiler tool, see how to use (in chinese)
redesign super call for override function in lua
fix LuaState::get in LuaBase, now LuaBase bind to GameInstance as default
add support override bp function call from bp
fix LuaArray & LuaMap crash on GC
fix loadObject to load enum/class/struct
fix import UUserDefinedEnum can't get name as key
many minor fixes
fix #199
fix #201
fix #206
fix #223
fix #224
Published by pangweiwei about 5 years ago
add support for UE 4.23
add support for profiler in real device, now you can profile your lua & cpp code in real device by a visual tool
add support to export FDataTime
fix LuaOwnedPtr can't cast parent raw pointer
fix #183
fix #182
fix #185
fix #193
some minor fixs
Published by pangweiwei about 5 years ago
fix #170
fix #173
fix #174
Published by pangweiwei over 5 years ago
fix crash on unlinkUObject
Published by pangweiwei over 5 years ago
fix #161 , fix lua delegate can't be remove from objRefs
Published by pangweiwei over 5 years ago
add ULuaActorComponent;
using SLUA_NS for namespace, You can change it conveniently in your project;
fix some compile error on UE 4.18;
fix cppbinding export child type;
fix duplicated symbols on mac building;
fix TSharedRef throw an exception on assign it a nullptr;
fix many bugs:
fix #150
fix #149
fix #141
fix #140
fix #136
fix #129
fix #130
fix #128
fix #116
Published by pangweiwei over 5 years ago
add DefLuaProperty to add property for cppbinding
add console command "slua.Do" to run lua script
import function can search UEnum
remove LuaEnums, native enum can exported by cppbinding, blueprint enum can import by the "import" function
fix crash on call super method if T isn't an UObject
fix crash on debug caused script ANR
fix compile error on Android
fix #107
fix #109, add util function isValid to check whether ud is valid