📜  如何在 lua 代码示例中停止渲染步进循环

📅  最后修改于: 2022-03-11 14:54:54.957000             🧑  作者: Mango

代码示例1
local runServ = game:GetService("RunService")

runServ:BindToRenderStep("test", Enum.RenderPriority.Camera.Value, function()
    print("ran")
end)

wait(2)

runServ:UnbindFromRenderStep("test")