public sealed class NodeTypeRegistryEvery node type a graph may contain, by path.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Filled by generated code, not by reflection. The generator writes one Register per assembly listing that assembly's node types, and a host calls the ones it wants. Scanning assemblies would be the shorter code and would cost a reflection pass at startup, an AOT hazard, and a node library whose contents depend on which assemblies happened to be loaded.
An instance rather than a static. Two graphs may want different libraries — a shader graph has no spawner nodes and a VFX graph has no master node — and a test wants a registry with three types in it rather than the whole world. Nothing here is global.
Fields and properties (2)
public int CountHow many types are registered.
public IEnumerable<NodeTypeDefinition> TypesEvery type, in no particular order.
Methods (3)
public void Add(NodeTypeDefinition definition)Adds a type.
public bool TryGet(string path, out NodeTypeDefinition? definition)The type at a path.
public NodeTypeDefinition Get(string path)The type at a path, or a stated failure.
Used by (37)
- CompositorCompilerTestsVixen.Editor.AssetEditors.Tests
- CompositorDocumentVixen.Editor.AssetEditors
- CompositorEditorFactoryVixen.Editor.AssetEditors
- CompositorGraphCompilerVixen.Editor.AssetEditors
- CompositorViewVixen.Editor.AssetEditors
- LayoutCommandVixen.Editor.NodeGraph
- LayoutTestsVixen.Editor.NodeGraph.Tests
- ListingCompilerVixen.Editor.NodeGraph.Tests
- NodeGraphCompilerVixen.Editor.NodeGraph
- NodeGraphLayoutVixen.Editor.NodeGraph
- NodeGraphViewVixen.Editor.NodeGraph
- NodeSearchVixen.Editor.NodeGraph
- NodeSearchPopupVixen.Editor.NodeGraph
- NodeTypesVixen.Editor.AssetEditors
- NodeTypesVixen.Editor.ShaderGraph
- NodeTypesVixen.Editor.NodeGraph.Tests
- NodeTypesVixen.Editor.VfxGraph
- NodeTypingTestsVixen.Editor.NodeGraph.Tests
- PortValueTestsVixen.Editor.NodeGraph.Tests
- RecordingVixen.Editor.NodeGraph.Tests
- SearchTestsVixen.Editor.NodeGraph.Tests
- ShaderGraphCompilerVixen.Editor.ShaderGraph
- ShaderGraphCompilerTestsVixen.Editor.ShaderGraph.Tests
- ShaderGraphDocumentVixen.Editor.AssetEditors
- ShaderGraphEditorFactoryVixen.Editor.AssetEditors
- ShaderGraphViewVixen.Editor.AssetEditors
- ShaderNodeLibraryVixen.Editor.ShaderGraph
- SubGraphLibraryVixen.Editor.NodeGraph
- SubGraphTestsVixen.Editor.NodeGraph.Tests
- SubGraphsVixen.Editor.NodeGraph
- VfxDocumentVixen.Editor.AssetEditors
- VfxEditorFactoryVixen.Editor.AssetEditors
- VfxGraphCompilerVixen.Editor.VfxGraph
- VfxGraphCompilerTestsVixen.Editor.VfxGraph.Tests
- VfxNodeLibraryVixen.Editor.VfxGraph
- ViewFixtureVixen.Editor.NodeGraph.Tests
- ViewTestsVixen.Editor.NodeGraph.Tests