Platformer Pro  2.3.2
A platform game kit for Unity.
XNodeEditor.NodeGraphEditor Class Reference

Base class to derive custom Node Graph editors from. Use this to override how graphs are drawn in the editor. More...

Inheritance diagram for XNodeEditor.NodeGraphEditor:
XNodeEditor.Internal.NodeEditorBase< NodeGraphEditor, NodeGraphEditor.CustomNodeGraphEditorAttribute, XNode.NodeGraph >

Classes

class  CustomNodeGraphEditorAttribute
 

Public Member Functions

virtual void OnGUI ()
 
virtual void OnOpen ()
 Called when opened by NodeEditorWindow More...
 
virtual Texture2D GetGridTexture ()
 
virtual Texture2D GetSecondaryGridTexture ()
 
virtual NodeEditorPreferences.Settings GetDefaultPreferences ()
 Return default settings for this graph type. This is the settings the user will load if no previous settings have been saved. More...
 
virtual string GetNodeMenuName (Type type)
 Returns context node menu path. Null or empty strings for hidden nodes. More...
 
virtual void AddContextMenuItems (GenericMenu menu)
 Add items for the context menu when right-clicking this node. Override to add custom menu items. More...
 
virtual Gradient GetNoodleGradient (XNode.NodePort output, XNode.NodePort input)
 Returned gradient is used to color noodles More...
 
virtual float GetNoodleThickness (XNode.NodePort output, XNode.NodePort input)
 Returned float is used for noodle thickness More...
 
virtual NoodlePath GetNoodlePath (XNode.NodePort output, XNode.NodePort input)
 
virtual NoodleStroke GetNoodleStroke (XNode.NodePort output, XNode.NodePort input)
 
virtual Color GetPortColor (XNode.NodePort port)
 Returned color is used to color ports More...
 
virtual Color GetTypeColor (Type type)
 Returns generated color for a type. This color is editable in preferences More...
 
virtual string GetPortTooltip (XNode.NodePort port)
 Override to display custom tooltips More...
 
virtual void OnDropObjects (UnityEngine.Object[] objects)
 Deal with objects dropped into the graph through DragAndDrop More...
 
virtual XNode.Node CreateNode (Type type, Vector2 position)
 Create a node and save it in the graph asset More...
 
XNode.Node CopyNode (XNode.Node original)
 Creates a copy of the original node in the graph More...
 
virtual void RemoveNode (XNode.Node node)
 Safely remove a node and all its connections. More...
 
- Public Member Functions inherited from XNodeEditor.Internal.NodeEditorBase< NodeGraphEditor, NodeGraphEditor.CustomNodeGraphEditorAttribute, XNode.NodeGraph >
virtual void OnCreate ()
 Called on creation, after references have been set More...
 

Protected Attributes

bool isRenaming
 Are we currently renaming a node? More...
 

Properties

Rect position [get, set]
 

Additional Inherited Members

- Static Public Member Functions inherited from XNodeEditor.Internal.NodeEditorBase< NodeGraphEditor, NodeGraphEditor.CustomNodeGraphEditorAttribute, XNode.NodeGraph >
static T GetEditor (K target, NodeEditorWindow window)
 
- Public Attributes inherited from XNodeEditor.Internal.NodeEditorBase< NodeGraphEditor, NodeGraphEditor.CustomNodeGraphEditorAttribute, XNode.NodeGraph >
NodeEditorWindow window
 
target
 
SerializedObject serializedObject
 

Detailed Description

Base class to derive custom Node Graph editors from. Use this to override how graphs are drawn in the editor.

Member Function Documentation

◆ AddContextMenuItems()

virtual void XNodeEditor.NodeGraphEditor.AddContextMenuItems ( GenericMenu  menu)
virtual

Add items for the context menu when right-clicking this node. Override to add custom menu items.

◆ CopyNode()

XNode.Node XNodeEditor.NodeGraphEditor.CopyNode ( XNode.Node  original)

Creates a copy of the original node in the graph

◆ CreateNode()

virtual XNode.Node XNodeEditor.NodeGraphEditor.CreateNode ( Type  type,
Vector2  position 
)
virtual

Create a node and save it in the graph asset

◆ GetDefaultPreferences()

virtual NodeEditorPreferences.Settings XNodeEditor.NodeGraphEditor.GetDefaultPreferences ( )
virtual

Return default settings for this graph type. This is the settings the user will load if no previous settings have been saved.

◆ GetGridTexture()

virtual Texture2D XNodeEditor.NodeGraphEditor.GetGridTexture ( )
virtual

◆ GetNodeMenuName()

virtual string XNodeEditor.NodeGraphEditor.GetNodeMenuName ( Type  type)
virtual

Returns context node menu path. Null or empty strings for hidden nodes.

◆ GetNoodleGradient()

virtual Gradient XNodeEditor.NodeGraphEditor.GetNoodleGradient ( XNode.NodePort  output,
XNode.NodePort  input 
)
virtual

Returned gradient is used to color noodles

Parameters
outputThe output this noodle comes from. Never null.
inputThe output this noodle comes from. Can be null if we are dragging the noodle.

◆ GetNoodlePath()

virtual NoodlePath XNodeEditor.NodeGraphEditor.GetNoodlePath ( XNode.NodePort  output,
XNode.NodePort  input 
)
virtual

◆ GetNoodleStroke()

virtual NoodleStroke XNodeEditor.NodeGraphEditor.GetNoodleStroke ( XNode.NodePort  output,
XNode.NodePort  input 
)
virtual

◆ GetNoodleThickness()

virtual float XNodeEditor.NodeGraphEditor.GetNoodleThickness ( XNode.NodePort  output,
XNode.NodePort  input 
)
virtual

Returned float is used for noodle thickness

Parameters
outputThe output this noodle comes from. Never null.
inputThe output this noodle comes from. Can be null if we are dragging the noodle.

◆ GetPortColor()

virtual Color XNodeEditor.NodeGraphEditor.GetPortColor ( XNode.NodePort  port)
virtual

Returned color is used to color ports

◆ GetPortTooltip()

virtual string XNodeEditor.NodeGraphEditor.GetPortTooltip ( XNode.NodePort  port)
virtual

Override to display custom tooltips

◆ GetSecondaryGridTexture()

virtual Texture2D XNodeEditor.NodeGraphEditor.GetSecondaryGridTexture ( )
virtual

◆ GetTypeColor()

virtual Color XNodeEditor.NodeGraphEditor.GetTypeColor ( Type  type)
virtual

Returns generated color for a type. This color is editable in preferences

◆ OnDropObjects()

virtual void XNodeEditor.NodeGraphEditor.OnDropObjects ( UnityEngine.Object[]  objects)
virtual

Deal with objects dropped into the graph through DragAndDrop

◆ OnGUI()

virtual void XNodeEditor.NodeGraphEditor.OnGUI ( )
virtual

◆ OnOpen()

virtual void XNodeEditor.NodeGraphEditor.OnOpen ( )
virtual

Called when opened by NodeEditorWindow

◆ RemoveNode()

virtual void XNodeEditor.NodeGraphEditor.RemoveNode ( XNode.Node  node)
virtual

Safely remove a node and all its connections.

Member Data Documentation

◆ isRenaming

bool XNodeEditor.NodeGraphEditor.isRenaming
protected

Are we currently renaming a node?

Property Documentation

◆ position

Rect XNodeEditor.NodeGraphEditor.position
getset

The documentation for this class was generated from the following file: