csharp
public sealed class ConstantNodeA constant the author types in.
No guide page documents this yet — the page shows what the code says about itself.
As a graph node
- Create menu
- Input/Constant
Remarks
Its value lives on the port rather than on the node, which is what lets an inspector edit it with the same code that edits any other unconnected input — and what lets it be replaced by a wire without the node knowing.
Fields and properties (3)
public DynamicVector ValueThe value.
public DynamicVector OutThe same value, as an output.
public static NodeTypeDefinition DefinitionWhat this node type is, for the registry. Generated.
Methods (2)
protected internal override void Emit(RavenEmitter emitter)Writes whatever this node contributes.
public override void Bind(NodeBinding binding)Fills the port fields from what the compiler resolved. Generated.
Used by (1)
- NodeTypesVixen.Editor.ShaderGraph