Files
UnrealLuaDemo/Script/lua/Tests/UnLuaExamples/Ex01_HelloWorld.lua
T

18 lines
453 B
Lua

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