Vixen
02b45cc4
csharp
public sealed class EditorRegistry

The contribution registry.

Read the guide page for this →

Remarks

⚠ Locked, because the generated producer runs on whatever thread first touched the assembly. A module initializer is not on the frame thread and has no way to get onto it; everything else here is, so contention is a start-up cost and nothing more.

Fields and properties (1)

  • public static EditorRegistry Default

    The one the editor reads unless it was handed another.

Events (1)

  • public Action<Type>? Changed

    Raised after any contribution of a kind is added or removed, with that kind.

Methods (3)

  • public IReadOnlyList<T> All<T>() where T : class

    Everything contributed of one kind, oldest first.

  • public IDisposable Add<T>(T contribution) where T : class

    Adds a contribution.

  • public void Clear()

    Forgets everything. For tests.

Used by (9)

  • ComponentGizmoTestsVixen.Editor.SceneView.Tests
  • DeclaredContributionTestsVixen.Editor.App.Tests
  • EditorApplicationVixen.Editor.App
  • EditorRegistryTestsVixen.Editor.Core.Tests
  • EditorSessionVixen.Editor.Testing
  • InspectorViewVixen.Editor.Inspector
  • OutOfTreePluginTestsVixen.Editor.App.Tests
  • RemovalVixen.Editor.Core
  • SceneViewportVixen.Editor.SceneView