Skip to main content

Runtime

The Runtime class provides methods and properties to execute code at specified times and to get information on the current runtime.

To get the Runtime class, you must get its handler.

let Runtime = instance.GetHandler("Runtime")

You can then use the Runtime property to access the Runtime class.

Methods

Method NameReturn TypeParametersDescription
OnFixedUpdatevoidfunction()Invokes a SandboxFunc on FixedUpdate
RemoveOnFixedUpdatevoidfunction()Removes a SandboxFunc that was marked to OnFixedUpdate
OnUpdatevoidfunction()Invokes a SandboxFunc on Update
RemoveOnUpdatevoidfunction()Removes a SandboxFunc that was marked to OnUpdate
OnLateUpdatevoidfunction()Invokes a SandboxFunc on LateUpdate
RemoveOnLateUpdatevoidfunction()Removes a SandboxFunc that was marked to OnLateUpdate
OnDisposevoidfunction()Invokes a SandboxFunc when the script is being Disposed
RemoveOnDisposevoidfunction()Removes a SandboxFunc that was marked to OnDispose
RepeatSecondsvoidfunction(), floatRepeats a SandboxFunc for a desired amount of seconds
RemoveRepeatSecondsvoidfunction()Removes an Existing SandboxFunc associated with a repeat
RunAfterSecondsvoidfunction(), floatInvokes a SandboxFunc after a desired amount of seconds