SceneScript

Summary

Represents a scriptable scene controller providing lifecycle callbacks across scene execution phases.

Remarks

Master Thread: Operations on this type interact directly with scene and engine state, and must be executed exclusively on the Master Thread.

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:


protected virtual Void OnPostTick(Single dt)

Summary: Invoked each frame after actor update ticking has completed.

Parameters:


protected virtual Void OnPreStep(Single ts)

Summary: Invoked each physics update prior to fixed-step evaluation.

Parameters:


protected virtual Void OnPostStep(Single ts)

Summary: Invoked each physics update after fixed-step evaluation has completed.

Parameters:


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.