public interface IPortValueOne port's value, during compilation: the text that reads it in the emitted source.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
A port field holds an expression, not a number. A node's Emit is a line of target source with its ports interpolated into it — $"{Result} = mix({A}, {B}, {T})" — so what a port has to be is something that stringifies to whatever names it in that source. For a connected input that is the variable the upstream node wrote; for an unconnected one it is a literal; for an output it is a fresh variable name.
The declared type is the port's kind. That is the whole reason there are several of these rather than one: the generator reads the field's type to know what the port carries, and a node author reads it to know what they are holding. They are otherwise identical, which is what IPortValue says.
Fields and properties (1)
string ExpressionThe text that reads this port in the emitted source.
Used by (10)
- BoolVixen.Editor.NodeGraph
- DynamicVectorVixen.Editor.NodeGraph
- Float2Vixen.Editor.NodeGraph
- Float3Vixen.Editor.NodeGraph
- Float4Vixen.Editor.NodeGraph
- FlowVixen.Editor.NodeGraph
- IntVixen.Editor.NodeGraph
- SamplerVixen.Editor.NodeGraph
- ScalarVixen.Editor.NodeGraph
- TextureVixen.Editor.NodeGraph