C# Класс Rondo.NodeEditor.Base.NodeEditor

The base of the node editor
Наследование: EditorWindow
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
instance NodeEditor

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
DrawNode ( int id ) : void
DrawNodes ( ) : void
DrawSelectionRectangle ( ) : void
HandleLeftClick ( Event e ) : void
HandleRightClick ( Event e ) : void
OnGUI ( ) : void

Описание методов

AddNode() публичный Метод

Add a node to the editor
public AddNode ( BaseNode node ) : void
node BaseNode
Результат void

CalculateStartNodes() публичный Метод

Calculates the starting nodes based on connections, which is accessable via GetState()
public CalculateStartNodes ( ) : void
Результат void

ClearNodes() публичный Метод

Removes all nodes from the screen
public ClearNodes ( ) : void
Результат void

ConnectNodes() публичный Метод

public ConnectNodes ( BaseNode from, BaseNode to ) : NodeConnection
from BaseNode
to BaseNode
Результат NodeConnection

DrawWindow() публичный Метод

public DrawWindow ( ) : void
Результат void

GetContextMenu() публичный Метод

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
Результат UnityEditor.GenericMenu

GetContextMenu() публичный Метод

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
Результат UnityEditor.GenericMenu

GetEditorOptions() публичный Метод

public GetEditorOptions ( ) : NodeEditorOptions
Результат Rondo.NodeEditor.System.NodeEditorOptions

GetEditorState() публичный Метод

Get the editor state which contains most frame by frame information
public GetEditorState ( ) : NodeEditorState
Результат Rondo.NodeEditor.System.NodeEditorState

GetNode() публичный Метод

Gets a node by tag. Returns null if no node is found
public GetNode ( string tag ) : BaseNode
tag string
Результат BaseNode

OffsetNodes() публичный Метод

Offsets all nodes on the screen
public OffsetNodes ( Vector2 v ) : void
v Vector2
Результат void

OrganizeNodes() публичный Метод

Attempts to organize all nodes on the screen by their heirarchy
public OrganizeNodes ( ) : void
Результат void

PrepareWindow() публичный Метод

Called when the window is opened. Load any information the node editor requires here
public PrepareWindow ( ) : void
Результат void

RemoveNode() публичный Метод

Remove a node from the editor
public RemoveNode ( BaseNode node ) : void
node BaseNode
Результат void

UpdateMouseOverState() публичный Метод

Updates the mouseover state for handles and nodes
public UpdateMouseOverState ( ) : void
Результат void

Описание свойств

instance публичное статическое свойство

public static NodeEditor,Rondo.NodeEditor.Base instance
Результат NodeEditor