lua dev plugin for unreal engine 4 or 5
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.
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".
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
slua unreal 2.0.0 version.
fix #344 fix #349 fix #350 fix #351 fix #352 fix #363 fix #364 many minor fixes
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
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