Vixen
dd8b0a81
csharp
public readonly record struct NodeOrigin

Where an inlined node came from.

Read the guide page for this →

Fields and properties (5)

  • public NodeId Node

    The synthetic identity it has in the flattened graph.

  • public NodeId Source

    The sub-graph node in the author's own graph that it came out of — the thing they can select. For a node inlined from a sub-graph inside a sub-graph this is still the outermost one, because that is the only node the open document has.

  • public string Type

    The node-type path of the sub-graph it was written in, which is the innermost.

  • public NodeId Inner

    The identity it had in that sub-graph's own file.

  • public int Expansion

    Which expansion of that sub-graph it came out of — a key into Expansions, and never zero for a node that was inlined. ⚠ Not the same question as Type. Two nodes of the same published type in one graph are two expansions with two sets of settings, so a caller that keyed anything on the path would give both of them whichever author's numbers it happened to read first.

Methods (1)

  • public NodeOrigin(NodeId Node, NodeId Source, string Type, NodeId Inner, int Expansion)

    Where an inlined node came from.

Used by (6)

  • FlattenerVixen.Editor.NodeGraph
  • NodeGraphCompilerVixen.Editor.NodeGraph
  • NodeGraphInliningVixen.Editor.NodeGraph
  • TextureCompoundLibraryTestsVixen.Editor.TextureGraph.Tests
  • TextureGraphCompilerVixen.Editor.TextureGraph
  • TexturePlanSeedTestsVixen.Editor.TextureGraph.Tests