public sealed class NodeAttributeMarks a class as a node type, and says where it appears in the create menu.
No guide page documents this yet — the page shows what the code says about itself.
As a annotation
- Valid on
- Class
Remarks
A node is an ordinary C# class, which is what makes the library extensible. A plugin adds nodes by adding classes; there is no table to register in and no switch to extend. The generator reads the marked fields and writes the port metadata, so the declaration and the metadata cannot drift apart — they are the same text.
The class has to be partial: the generator writes the half that binds the fields to the graph's edges, and it writes it into the same class so a node's ports are its fields rather than a dictionary it looks itself up in.
Fields and properties (3)
public string PathThe menu path, and the key a saved graph stores.
public string SummaryOne line saying what the node is for. Shown in the create menu and on hover.
public bool PreviewWhether the node is worth drawing a preview thumbnail for.
Methods (1)
public NodeAttribute(string path)Marks a class as a node type, and says where it appears in the create menu.
Used by (71, showing 40)
- AbsoluteNodeVixen.Editor.ShaderGraph
- AddNodeVixen.Editor.ShaderGraph
- AttractNodeVixen.Editor.VfxGraph
- BillboardOutputNodeVixen.Editor.VfxGraph
- BufferNodeVixen.Editor.AssetEditors
- BufferReadbackNodeVixen.Editor.AssetEditors
- BufferUploadNodeVixen.Editor.AssetEditors
- BurstNodeVixen.Editor.VfxGraph
- CollidePlaneNodeVixen.Editor.VfxGraph
- ColourNodeVixen.Editor.VfxGraph
- ColourOverLifeNodeVixen.Editor.VfxGraph
- ColourPropertyNodeVixen.Editor.ShaderGraph
- CombineNodeVixen.Editor.ShaderGraph
- ComputeNodeVixen.Editor.AssetEditors
- ConstantNodeVixen.Editor.ShaderGraph
- DivideNodeVixen.Editor.ShaderGraph
- DotNodeVixen.Editor.ShaderGraph
- DragNodeVixen.Editor.VfxGraph
- EffectNodeVixen.Editor.VfxGraph
- FloatPropertyNodeVixen.Editor.ShaderGraph
- FractionNodeVixen.Editor.ShaderGraph
- FrameNodeVixen.Editor.AssetEditors
- FullScreenNodeVixen.Editor.AssetEditors
- GpuCullingNodeVixen.Editor.AssetEditors
- GravityNodeVixen.Editor.VfxGraph
- HiZNodeVixen.Editor.AssetEditors
- IntegrateNodeVixen.Editor.VfxGraph
- LerpNodeVixen.Editor.ShaderGraph
- LifetimeNodeVixen.Editor.VfxGraph
- LightOutputNodeVixen.Editor.VfxGraph
- MultiplyNodeVixen.Editor.ShaderGraph
- NormalizeNodeVixen.Editor.ShaderGraph
- OneMinusNodeVixen.Editor.ShaderGraph
- PbrMasterNodeVixen.Editor.ShaderGraph
- PositionInBoxNodeVixen.Editor.VfxGraph
- PositionInSphereNodeVixen.Editor.VfxGraph
- PowerNodeVixen.Editor.ShaderGraph
- PunctualShadowNodeVixen.Editor.AssetEditors
- RandomVelocityNodeVixen.Editor.VfxGraph
- RateNodeVixen.Editor.VfxGraph