Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Captures the editable scene set and materializes independent runtime copies in the supplied session.

API: engine
Project: Inno.Editor.Scene

System.IDisposable Inno.Editor.Scene.IEditorScenePlayMode.BeginPlayMode(Inno.Runtime.RuntimeSession runtimeSession)

Parameter runtimeSession: The isolated Play Mode session that receives the immutable start snapshot and owns editor-side operations performed against the runtime copies.

A lease that presents the runtime copies to editor features, prevents their persistence, and restores the Edit presentation when disposed.

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.