Vixen
02b45cc4
csharp
public sealed class ConstantNode

A 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)

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