public sealed class SceneEditorFactoryOpens a scene.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ A world comes from the host, and that is the one thing this cannot decide. A scene is an ECS world, and whether two open scenes share one world or get one each is an application's decision with consequences for play mode, for entity handles and for how much memory an editor with ten scenes open uses. The factory takes a supplier and does not guess.
Loading clears the stack. SceneSerializer.Load does it, and it is what stops a scene opening with fifty undo entries nobody made.
Fields and properties (3)
public override string NameWhat it is called, in a menu and in a message about two of them clashing.
public override IReadOnlyList<string> ExtensionsThe extensions it claims, each with its leading dot.
public override IReadOnlyList<Type> DocumentTypesEvery type Open may return; a view is found for each by DocumentView.
Methods (2)
public SceneEditorFactory(Func<DocumentRequest, World> worlds)Opens a scene.
public override EditorDocument Open(DocumentRequest request)Opens an asset as a document.
Used by (3)
- PrefabInspectorTestsVixen.Editor.App.Tests
- PrefabPlacementTestsVixen.Editor.App.Tests
- StandardEditorsVixen.Editor.AssetEditors