C# Class Assets.NodeEditor.Editor.NodeHandle

Show file Open project: Randehh/Unity-NodeEditor Class Usage Examples

Public Properties

Property Type Description
attachedTo Rondo.NodeEditor.Base.BaseNode
rect UnityEngine.Rect

Public Methods

Method Description
DrawHandle ( ) : void

Draw the handle

Move ( Vector2 mousePos ) : void

Change where the handle is drawn

NodeHandle ( BaseNode attachedTo, HandleOrientation startingOrientation ) : Rondo.NodeEditor.Base

A node handle to which connections attach

Private Methods

Method Description
CalculatePosition ( ) : void

Calculate the new offset position of the handle depending on the orientation and offset

Method Details

DrawHandle() public method

Draw the handle
public DrawHandle ( ) : void
return void

Move() public method

Change where the handle is drawn
public Move ( Vector2 mousePos ) : void
mousePos Vector2
return void

NodeHandle() public method

A node handle to which connections attach
public NodeHandle ( BaseNode attachedTo, HandleOrientation startingOrientation ) : Rondo.NodeEditor.Base
attachedTo Rondo.NodeEditor.Base.BaseNode
startingOrientation HandleOrientation
return Rondo.NodeEditor.Base

Property Details

attachedTo public property

public BaseNode,Rondo.NodeEditor.Base attachedTo
return Rondo.NodeEditor.Base.BaseNode

rect public property

public Rect,UnityEngine rect
return UnityEngine.Rect