public interface IActivePlaySessionThe in-editor play session that is running right now, if one is.
Remarks
IActiveScene's shape, for the services that only exist while Play is pressed. An IPlaySystems contribution creates its systems on Play and destroys them on Stop, and hands them over with Provide``1 — so a panel that wants the running AiSystem or PhysicsScene has to be able to reach the session, and nothing let it (#470).
⚠ Published once and long-lived, with the answer moving under it — not the session published per Play. PluginServices has no removal, so a session put in it would be a handle to a torn-down world for every reader after the first Stop: the hazard PlayPhysics exists to avoid, one layer over. A panel asks every time it needs the answer and gets between sessions.
Fields and properties (1)
PlaySession? CurrentThe running session, or when nothing is playing.
Used by (8)
- AssetEditorsModuleVixen.Editor.AssetEditors
- DiagnosticsModuleVixen.Editor.Diagnostics
- EditorApplicationVixen.Editor.App
- EditorPlaySessionTestsVixen.Editor.SceneView.Tests
- IPlaySessionVixen.Editor.SceneView
- PlayAiTestsVixen.Editor.App.Tests
- PlayModeControllerVixen.Editor.SceneView
- PlayModuleTestsVixen.Editor.App.Tests