Skip to main content

Class SNGraphEditor

Custom Node Graph editors for SceneNetworkGraph.

public class SNGraphEditor : NodeGraphEditor

Inheritance​

NodeGraphEditor→SNGraphEditor

Methods​

GetNodeMenuName(Type)​

Get the context menu path for the specified node type. Return null or empty strings for node types that should be hidden from the menu.

public override string GetNodeMenuName(Type type)

Parameters​

NameTypeDescription
typeTypeThe Type of the node to get the menu path for.

Returns​

string — The context menu path for the given node type, or null/empty if the node should be hidden in the menu.

GetPortTooltip(NodePort)​

Display custom tooltips.

public override string GetPortTooltip(XNode.NodePort port)

Parameters​

NameTypeDescription
portXNode.NodePortThe port requesting the tooltip.

Returns​

string — The text to be displayed as tooltip.

  • Methods
    • GetNodeMenuName(Type)
    • GetPortTooltip(NodePort)