We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local LuaGameMode = {}
function LuaGameMode:ReceiveBeginPlay() self.Super:ReceiveBeginPlay() self.bCanEverTick = false end
function LuaGameMode:ReceiveTick(DeltaSeconds) print("LuaGameMode:ReceiveTick",DeltaSeconds) end
return Class(nil, nil, LuaGameMode)
这里无论是将bCanEverTick设置为true或者false,都会执行ReceiveTick方法
The text was updated successfully, but these errors were encountered:
在 4.26里面 有两个坑点:
function DamageZoneActor:ReceiveBeginPlay() print("DamageZoneActor:ReceiveBeginPlay") self:SetActorTickEnabled(true) print(self:IsActorTickEnabled()) self.Super:ReceiveBeginPlay() end
Event Tick
Sorry, something went wrong.
在 4.26里面 有两个坑点: bCanEverTick改变了: function DamageZoneActor:ReceiveBeginPlay() print("DamageZoneActor:ReceiveBeginPlay") self:SetActorTickEnabled(true) print(self:IsActorTickEnabled()) self.Super:ReceiveBeginPlay() end 需要在对应Actor蓝图里面保证Event Tick Enabled。注册任意函数再删掉,Compile蓝图即可。
确实是这样的,3q! 我用的ue 5.3.2版本,也是如此~
No branches or pull requests
local LuaGameMode = {}
function LuaGameMode:ReceiveBeginPlay()
self.Super:ReceiveBeginPlay()
self.bCanEverTick = false
end
function LuaGameMode:ReceiveTick(DeltaSeconds)
print("LuaGameMode:ReceiveTick",DeltaSeconds)
end
return Class(nil, nil, LuaGameMode)
这里无论是将bCanEverTick设置为true或者false,都会执行ReceiveTick方法
The text was updated successfully, but these errors were encountered: