SceneScript
Summary
Represents a scriptable scene controller providing lifecycle callbacks across scene execution phases.
Remarks
Definition
Namespace: SDT4.Managed.Core.Script
Assembly: SDT4.Managed.Core.dll
class SceneScript
Inheritance:
Object ➔ Scene ➔ SceneScript
Implements:
IDisposable, IDisposeTracker<Scene>, IScriptTarget
Fields
| Name | Type | Description |
|---|---|---|
Properties
| Name | Type | Description |
|---|---|---|
public get; UniqueIdentifier |
Guid | Gets the unique identifier for this scene script target, defaulting to Guid.Empty. |
Methods
protected virtual Void OnPreBegin()
Summary: Invoked when the scene starts, before any other scripts have begun execution.
protected virtual Void OnPostBegin()
Summary: Invoked when the scene starts, after all scene actors have been instantiated.
protected virtual Void OnPreTick(Single dt)
Summary: Invoked each frame prior to actor update ticking.
Parameters:
dt(Single): The delta time in seconds elapsed since the previous frame.
protected virtual Void OnPostTick(Single dt)
Summary: Invoked each frame after actor update ticking has completed.
Parameters:
dt(Single): The delta time in seconds elapsed since the previous frame.
protected virtual Void OnPreStep(Single ts)
Summary: Invoked each physics update prior to fixed-step evaluation.
Parameters:
ts(Single): The fixed timestep duration in seconds.
protected virtual Void OnPostStep(Single ts)
Summary: Invoked each physics update after fixed-step evaluation has completed.
Parameters:
ts(Single): The fixed timestep duration in seconds.
protected virtual Void OnPreEnd()
Summary: Invoked prior to scene termination and actor cleanup.
protected virtual Void OnPostEnd()
Summary: Invoked after scene termination and actor cleanup have completed.