public sealed class PrefabEditorFactoryOpens a prefab, in isolation.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Isolation is a world of its own, and that is the whole of it. Doc 11 asks for an "isolated prefab-editing mode": a prefab opened into the scene's world would be a subtree sitting in the level, editable by the level's gizmo, saved by the level's Ctrl+S. Its own world means the entities cannot be reached from the scene, the hierarchy shows the prefab and nothing else, and the undo stack is the document's — which is what "isolated" has to mean for it to be worth having.
The supplier is separate from the scene factory's on purpose: a host that shares one world between scenes must not share it with prefabs, and making that one function would make the mistake invisible.
Fields and properties (2)
public string NameWhat this editor is called, in a menu and in a message about two of them clashing.
public IReadOnlyList<string> ExtensionsThe extensions it claims, each with its leading dot.
Methods (3)
public PrefabEditorFactory(Func<AssetEditorRequest, World> worlds)Opens a prefab, in isolation.
public EditorDocument Open(AssetEditorRequest request)Opens an asset as a document.
public UiElement CreateView(EditorDocument document, UiElement panel)
Used by (1)
- StandardEditorsVixen.Editor.AssetEditors