C# Class Rondo.NodeEditor.Base.NodeEditor

The base of the node editor
Inheritance: EditorWindow
Afficher le fichier Open project: Randehh/Unity-NodeEditor Class Usage Examples

Méthodes publiques

Свойство Type Description
instance NodeEditor

Méthodes publiques

Méthode Description
AddNode ( BaseNode node ) : void

Add a node to the editor

CalculateStartNodes ( ) : void

Calculates the starting nodes based on connections, which is accessable via GetState()

ClearNodes ( ) : void

Removes all nodes from the screen

ConnectNodes ( BaseNode from, BaseNode to ) : NodeConnection
DrawWindow ( ) : void
GetContextMenu ( BaseNode node ) : GenericMenu

Gets the context menu of the current mouse over node. If no node is moused over, parameter will be null

GetContextMenu ( NodeHandle handle ) : GenericMenu

Gets the context menu of the current mouse over handle. If no handle is moused over, parameter will be null

GetEditorOptions ( ) : NodeEditorOptions
GetEditorState ( ) : NodeEditorState

Get the editor state which contains most frame by frame information

GetNode ( string tag ) : BaseNode

Gets a node by tag. Returns null if no node is found

OffsetNodes ( Vector2 v ) : void

Offsets all nodes on the screen

OrganizeNodes ( ) : void

Attempts to organize all nodes on the screen by their heirarchy

PrepareWindow ( ) : void

Called when the window is opened. Load any information the node editor requires here

RemoveNode ( BaseNode node ) : void

Remove a node from the editor

UpdateMouseOverState ( ) : void

Updates the mouseover state for handles and nodes

Private Methods

Méthode Description
DrawNode ( int id ) : void
DrawNodes ( ) : void
DrawSelectionRectangle ( ) : void
HandleLeftClick ( Event e ) : void
HandleRightClick ( Event e ) : void
OnGUI ( ) : void

Method Details

AddNode() public méthode

Add a node to the editor
public AddNode ( BaseNode node ) : void
node BaseNode
Résultat void

CalculateStartNodes() public méthode

Calculates the starting nodes based on connections, which is accessable via GetState()
public CalculateStartNodes ( ) : void
Résultat void

ClearNodes() public méthode

Removes all nodes from the screen
public ClearNodes ( ) : void
Résultat void

ConnectNodes() public méthode

public ConnectNodes ( BaseNode from, BaseNode to ) : NodeConnection
from BaseNode
to BaseNode
Résultat NodeConnection

DrawWindow() public méthode

public DrawWindow ( ) : void
Résultat void

GetContextMenu() public méthode

Gets the context menu of the current mouse over node. If no node is moused over, parameter will be null
public GetContextMenu ( BaseNode node ) : GenericMenu
node BaseNode
Résultat UnityEditor.GenericMenu

GetContextMenu() public méthode

Gets the context menu of the current mouse over handle. If no handle is moused over, parameter will be null
public GetContextMenu ( NodeHandle handle ) : GenericMenu
handle Assets.NodeEditor.Editor.NodeHandle
Résultat UnityEditor.GenericMenu

GetEditorOptions() public méthode

public GetEditorOptions ( ) : NodeEditorOptions
Résultat Rondo.NodeEditor.System.NodeEditorOptions

GetEditorState() public méthode

Get the editor state which contains most frame by frame information
public GetEditorState ( ) : NodeEditorState
Résultat Rondo.NodeEditor.System.NodeEditorState

GetNode() public méthode

Gets a node by tag. Returns null if no node is found
public GetNode ( string tag ) : BaseNode
tag string
Résultat BaseNode

OffsetNodes() public méthode

Offsets all nodes on the screen
public OffsetNodes ( Vector2 v ) : void
v Vector2
Résultat void

OrganizeNodes() public méthode

Attempts to organize all nodes on the screen by their heirarchy
public OrganizeNodes ( ) : void
Résultat void

PrepareWindow() public méthode

Called when the window is opened. Load any information the node editor requires here
public PrepareWindow ( ) : void
Résultat void

RemoveNode() public méthode

Remove a node from the editor
public RemoveNode ( BaseNode node ) : void
node BaseNode
Résultat void

UpdateMouseOverState() public méthode

Updates the mouseover state for handles and nodes
public UpdateMouseOverState ( ) : void
Résultat void

Property Details

instance public_oe static_oe property

public static NodeEditor,Rondo.NodeEditor.Base instance
Résultat NodeEditor