public static class ShaderNodeLibraryThe node types a shader graph is edited against, as one call.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The generator emits NodeTypes.Register; this is the name a caller outside this assembly can find. The same pair of lines VfxNodeLibrary exists for — a fresh registry and then the generated registration — and the same failure when a caller gets it wrong: a library that is silently empty, which shows up as every node in a saved file being reported as unknown rather than as an error where the mistake was made.
⚠ One registry per host, not one per document. A node library is a property of the build rather than of a file, so ShaderGraphEditorFactory builds one and hands it to every graph it opens. Two open graphs disagreeing about what Math/Lerp is would be two compilers over one authored file.
Methods (1)
public static NodeTypeRegistry Create()Builds a registry holding every node type this assembly ships.
Used by (2)
- ShaderGraphDocumentVixen.Editor.AssetEditors
- ShaderGraphEditorFactoryVixen.Editor.AssetEditors