Synced
IEditorScenePlayMode.BeginPlayMode
Section titled “IEditorScenePlayMode.BeginPlayMode”
- Captures the editable scene set and materializes independent runtime copies in the supplied session.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Scene
Declaration
Section titled “Declaration”System.IDisposable Inno.Editor.Scene.IEditorScenePlayMode.BeginPlayMode(Inno.Runtime.RuntimeSession runtimeSession)Parameters
Section titled “Parameters”Parameter runtimeSession: The isolated Play Mode session that receives the immutable start snapshot and owns editor-side operations performed against the runtime copies.
Returns
Section titled “Returns”A lease that presents the runtime copies to editor features, prevents their persistence, and restores the Edit presentation when disposed.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: Thrown when runtimeSession is null.
Exception T:System.InvalidOperationException: Thrown when another Play Mode lease is active, the target world is not empty, or the snapshot cannot be materialized atomically.