feat: move Lua scripts to Script/lua and add binary UE bundle packing
This commit is contained in:
1 parent
256a60ac80
commit
ebce41f347
41 files changed
+1545
-57
No files matched your search
@@ -0,0 +1,22 @@
|
||||
---@type LuaGameModeBase
|
||||
local M = UnLua.Class()
|
||||
|
||||
local Log = require("Framework.Log")
|
||||
|
||||
function M:ReceiveBeginPlay()
|
||||
Log.Info("LuaGameMode:ReceiveBeginPlay() - Demo scene started")
|
||||
UE.UKismetSystemLibrary.PrintString(
|
||||
self,
|
||||
"[UnLua Demo] LuaGameMode initialized!",
|
||||
true,
|
||||
true,
|
||||
UE.FLinearColor(0.3, 0.85, 1.0, 1.0),
|
||||
5.0
|
||||
)
|
||||
end
|
||||
|
||||
function M:ReceiveEndPlay(EndPlayReason)
|
||||
Log.Info("LuaGameMode:ReceiveEndPlay(reason=%s)", tostring(EndPlayReason))
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in new issue
Block a user