Vixen
02b45cc4
csharp
public interface IAssetEditorFactory

One asset kind's editor: which files it claims, the document it opens, and the view over it.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Both halves in one place, deliberately. A document with no view is a model nobody can reach and a view with no document is a control with nothing behind it; splitting the registration in two would let a build have one without the other and find out when somebody double-clicked a file.

⚠ CreateView may run more than once for one document. A dock panel's factory runs again when the panel is reopened — the same rule Vixen.Editor.App's README states for its own panels — so nothing durable may live in a view. What has to survive a reopen belongs on the document.

Fields and properties (2)

  • string Name

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

  • IReadOnlyList<string> Extensions

    The extensions it claims, each with its leading dot.

Methods (2)

Used by (28)

  • AddressableGroupEditorFactoryVixen.Editor.AssetEditors
  • AnimationClipEditorFactoryVixen.Editor.AssetEditors
  • AnimationGraphEditorFactoryVixen.Editor.AssetEditors
  • AssetEditorRegistryVixen.Editor.AssetEditors
  • AssetEditorRegistryTestsVixen.Editor.AssetEditors.Tests
  • AudioMixerEditorFactoryVixen.Editor.AssetEditors
  • AuthoringTestsVixen.Editor.AssetEditors.Tests
  • ClashingFactoryVixen.Editor.AssetEditors.Tests
  • CompositorEditorFactoryVixen.Editor.AssetEditors
  • EditorApplicationVixen.Editor.App
  • FontEditorFactoryVixen.Editor.AssetEditors
  • HarnessEditorFactoryVixen.Editor.AssetEditors
  • InputActionsEditorFactoryVixen.Editor.AssetEditors
  • MarkupEditorFactoryVixen.Editor.AssetEditors
  • MaterialEditorFactoryVixen.Editor.AssetEditors
  • ModelEditorFactoryVixen.Editor.AssetEditors
  • MoveSetEditorFactoryVixen.Editor.AssetEditors
  • PrefabEditorFactoryVixen.Editor.AssetEditors
  • ProxyShapeEditorFactoryVixen.Editor.AssetEditors
  • SameNameFactoryVixen.Editor.AssetEditors.Tests
  • SceneEditorFactoryVixen.Editor.AssetEditors
  • SequenceEditorFactoryVixen.Editor.AssetEditors
  • ShaderEditorFactoryVixen.Editor.AssetEditors
  • ShaderGraphEditorFactoryVixen.Editor.AssetEditors
  • ShaderGraphSurfaceTestsVixen.Editor.App.Tests
  • ShapeVocabularyEditorFactoryVixen.Editor.AssetEditors
  • TextureEditorFactoryVixen.Editor.AssetEditors
  • VfxEditorFactoryVixen.Editor.AssetEditors