Vixen
02b45cc4
csharp
public sealed class PrefabEditorFactory

Opens 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 Name

    What this editor is called, in a menu and in a message about two of them clashing.

  • public IReadOnlyList<string> Extensions

    The extensions it claims, each with its leading dot.

Methods (3)

Used by (1)

  • StandardEditorsVixen.Editor.AssetEditors