C# 클래스 Rondo.NodeEditor.Base.NodeEditor

The base of the node editor
상속: EditorWindow
파일 보기 프로젝트 열기: Randehh/Unity-NodeEditor 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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