Vixen
dd8b0a81
csharp
public sealed class GraphNode

One box on the canvas.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (11)

  • public string Title

    What is written across the top of it.

  • public Vector2 Position

    Its top-left corner, in graph space.

  • public float Width

    How wide it is, in graph units.

  • public IReadOnlyList<GraphPort> Inputs

    Its ports, in order down the left side.

  • public IReadOnlyList<GraphPort> Outputs

    Its ports, in order down the right side.

  • public GraphGroup? Group

    The group it is in, if any.

  • public object? Tag

    Whatever the application wants to hang off it.

  • public List<GraphAttachment> Attachments

    Rows stacked on the node rather than wired to it.

  • public string Badge

    A short mark in the header, right-aligned. Empty for none.

  • public string Accent

    An extra style class on the node's element, or empty.

  • public int Rows

    How many ports the taller of its two sides has.

Methods (4)

  • public GraphNode(string title = "")

    Creates a node.

  • public GraphPort AddInput(string name)

    Adds a port on the left.

  • public GraphPort AddOutput(string name)

    Adds a port on the right.

  • public override string ToString()

    Returns a string that represents the current object.

Used by (26)

  • EditorShellSceneVixen.Benchmarks.Ui
  • GraphGroupVixen.Ui.Controls.Advanced
  • GraphPortVixen.Ui.Controls.Advanced
  • NodeCanvasVixen.Ui.Controls.Advanced
  • NodeCanvasKeyboardTestsVixen.Ui.Controls.Advanced.Tests
  • NodeCanvasTestsVixen.Ui.Controls.Advanced.Tests
  • NodeGraphVixen.Ui.Controls.Advanced
  • NodeGraphTestsVixen.Ui.Controls.Advanced.Tests
  • NodeItemVixen.Ui.Controls.Advanced
  • NodeMinimapVixen.Ui.Controls.Advanced
  • AgentFollowWiringTestsVixen.Editor.App.Tests
  • BehaviorTreeProjectionVixen.Editor.Ai
  • BehaviorTreeViewVixen.Editor.AssetEditors
  • EventChainProjectionVixen.Editor.Gameplay.Quests
  • EventChainProjectionTestsVixen.Editor.Gameplay.Quests.Tests
  • GoapGraphProjectionVixen.Editor.Ai
  • GoapGraphProjectionTestsVixen.Editor.AssetEditors.Tests
  • GraphPairVixen.Editor.NodeGraph.Tests
  • LiveGoapTestsVixen.Editor.AssetEditors.Tests
  • LiveTreeCanvasTestsVixen.Editor.AssetEditors.Tests
  • NodeGraphViewVixen.Editor.NodeGraph
  • NodePreviewLayerVixen.Editor.NodeGraph
  • TextureGraphPanelTestsVixen.Editor.Texturing.Tests
  • TextureGraphUndoTestsVixen.Editor.Texturing.Tests
  • ViewFixtureVixen.Editor.NodeGraph.Tests
  • ViewTestsVixen.Editor.NodeGraph.Tests