Synced
EditorPlayModeController
Section titled “EditorPlayModeController”
- Implements the deterministic state machine for one editor Play Mode workflow.
Required contracts
Section titled “Required contracts”API: engine
Implements: Inno.Editor.PlayMode.IEditorPlayMode, Inno.Editor.Core.IEditorReloadGuard, System.IDisposable
Inherits: object
Project: Inno.Editor.PlayMode
Declaration
Section titled “Declaration”public sealed class Inno.Editor.PlayMode.EditorPlayModeController : Inno.Editor.PlayMode.IEditorPlayMode, Inno.Editor.Core.IEditorReloadGuard, System.IDisposableRemarks
Section titled “Remarks”The editor host advances transitions at frame-safe points. Editable scenes remain owned by the scene workspace while the controller owns only the isolated runtime session.
Members
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Constructors | EditorPlayModeController.Constructor | Creates a Play Mode controller around the runtime host, scene snapshot, scripting, and history boundaries. |
| Methods | EditorPlayModeController.AdvanceTransition | Advances at most one Play Mode transition at an editor-controlled frame-safe point. |
| Methods | EditorPlayModeController.Dispose | Releases the isolated runtime session and history scope owned by this controller. |
| Methods | EditorPlayModeController.EnterPlayMode | Requests a fresh script generation before preparing an isolated runtime session. |
| Methods | EditorPlayModeController.ExitPlayMode | Requests cancellation, runtime-session disposal, or dismissal of a failed transition. |
| Methods | EditorPlayModeController.ListenStateChanges | Subscribes to committed state transitions through the Core event lifetime. |
| Methods | EditorPlayModeController.Tick | Advances the isolated runtime session by one complete frame. |
| Properties | EditorPlayModeController.activeSessionId | Gets the isolated runtime log session associated with the current request. |
| Properties | EditorPlayModeController.isPlaying | Gets whether isolated runtime scenes are actively simulating. |
| Properties | EditorPlayModeController.lastFailure | Gets the most recent transition or simulation failure. |
| Properties | EditorPlayModeController.state | Gets the current Play Mode transition state. |