test: add comprehensive ts2lua-unreal TS/Lua 5.4 test suites and upgrade to v0.2.2

This commit is contained in:
szy73711 committed 2026-11-29 03:35:49 +08:00
1 parent ee2e62bb34
commit 3dd61c32a9
75 files changed
+9929 -10

No files matched your search

@@ -0,0 +1,17 @@
local Ex01_HelloWorld = UnLua.Class()
function Ex01_HelloWorld.ReceiveBeginPlay(self)
self.greeting = ("Hello UnLua from TypeScript (" .. _VERSION) .. ")!"
UnLua.Log(self.greeting)
UE.UKismetSystemLibrary.PrintString(
self,
self.greeting,
true,
true,
UE.FLinearColor(0.1, 0.9, 0.4, 1),
5
)
end
function Ex01_HelloWorld.GetGreeting(self)
return self.greeting
end
return Ex01_HelloWorld