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 Name | Return Type | Parameters | Description |
---|---|---|---|
OnFixedUpdate | void | function() | Invokes a SandboxFunc on FixedUpdate |
RemoveOnFixedUpdate | void | function() | Removes a SandboxFunc that was marked to OnFixedUpdate |
OnUpdate | void | function() | Invokes a SandboxFunc on Update |
RemoveOnUpdate | void | function() | Removes a SandboxFunc that was marked to OnUpdate |
OnLateUpdate | void | function() | Invokes a SandboxFunc on LateUpdate |
RemoveOnLateUpdate | void | function() | Removes a SandboxFunc that was marked to OnLateUpdate |
OnDispose | void | function() | Invokes a SandboxFunc when the script is being Disposed |
RemoveOnDispose | void | function() | Removes a SandboxFunc that was marked to OnDispose |
RepeatSeconds | void | function() , float | Repeats a SandboxFunc for a desired amount of seconds |
RemoveRepeatSeconds | void | function() | Removes an Existing SandboxFunc associated with a repeat |
RunAfterSeconds | void | function() , float | Invokes a SandboxFunc after a desired amount of seconds |