C# Class Node_Editor, Killing-Game

Inheritance: Editor
Datei anzeigen Open project: SNUGDC/Killing-Game Class Usage Examples

Public Properties

Property Type Description
Background UnityEngine.Texture2D
ConnectorKnob UnityEngine.Texture2D
OnLoad SaveLoadEvent
OnSave SaveLoadEvent
activeNode Node,
connectOutput NodeOutput,
dragNode bool
editor Node_Editor,
knobSize int
mousePos Vector2
navigate bool
nodeBase GUIStyle
nodeBox GUIStyle
nodeButton GUIStyle
nodeCanvas Node_Canvas_Object,
nodeLabelBold GUIStyle
openedCanvas string
openedCanvasPath string
scrollWindow bool
sideWindowWidth int

Public Methods

Method Description
ApplyChanges ( ) : void
ColorToTex ( Color col ) : Texture2D
ContextCallback ( object obj ) : void

Context Click selection. Here you'll need to register your own using a string identifier

DrawNodeCurve ( Vector2 end, Vector2 start ) : void

Draws a node curve from start to end (with three shades of shadows! :O )

DrawNodeCurve ( Vector2 end, Vector2 start, Color lineColor ) : void
DrawSideWindow ( ) : void
LoadNodeCanvas ( string path ) : void

Loads the a node canvas from an asset

NewNodeCanvas ( ) : void

Creates and opens a new empty node canvas

NodeAtPosition ( Vector2 pos ) : Node,

Returns the node at the position

OnGUI ( ) : void
SaveNodeCanvas ( string path ) : void

Saves the current node canvas as a new asset

Tint ( Texture2D tex, Color col ) : Texture2D
checkInit ( ) : void

Private Methods

Method Description
ClearChildrenInput ( Node, node ) : void

A recursive function to clear all inputs that depend on the outputs of node. Usually does not need to be called manually

CreateEditor ( ) : void
DrawNode ( int id ) : void

Draws the node

InputEvents ( ) : void

Processes input events

Method Details

ApplyChanges() public method

public ApplyChanges ( ) : void
return void

ColorToTex() public static method

public static ColorToTex ( Color col ) : Texture2D
col Color
return UnityEngine.Texture2D

ContextCallback() public method

Context Click selection. Here you'll need to register your own using a string identifier
public ContextCallback ( object obj ) : void
obj object
return void

DrawNodeCurve() public static method

Draws a node curve from start to end (with three shades of shadows! :O )
public static DrawNodeCurve ( Vector2 end, Vector2 start ) : void
end Vector2
start Vector2
return void

DrawNodeCurve() public static method

public static DrawNodeCurve ( Vector2 end, Vector2 start, Color lineColor ) : void
end Vector2
start Vector2
lineColor Color
return void

DrawSideWindow() public method

public DrawSideWindow ( ) : void
return void

LoadNodeCanvas() public method

Loads the a node canvas from an asset
public LoadNodeCanvas ( string path ) : void
path string
return void

NewNodeCanvas() public method

Creates and opens a new empty node canvas
public NewNodeCanvas ( ) : void
return void

NodeAtPosition() public method

Returns the node at the position
public NodeAtPosition ( Vector2 pos ) : Node,
pos Vector2
return Node,

OnGUI() public method

public OnGUI ( ) : void
return void

SaveNodeCanvas() public method

Saves the current node canvas as a new asset
public SaveNodeCanvas ( string path ) : void
path string
return void

Tint() public static method

public static Tint ( Texture2D tex, Color col ) : Texture2D
tex UnityEngine.Texture2D
col Color
return UnityEngine.Texture2D

checkInit() public method

public checkInit ( ) : void
return void

Property Details

Background public_oe static_oe property

public static Texture2D,UnityEngine Background
return UnityEngine.Texture2D

ConnectorKnob public_oe static_oe property

public static Texture2D,UnityEngine ConnectorKnob
return UnityEngine.Texture2D

OnLoad public_oe property

public SaveLoadEvent OnLoad
return SaveLoadEvent

OnSave public_oe property

public SaveLoadEvent OnSave
return SaveLoadEvent

activeNode public_oe property

public Node, activeNode
return Node,

connectOutput public_oe property

public NodeOutput, connectOutput
return NodeOutput,

dragNode public_oe property

public bool dragNode
return bool

editor public_oe static_oe property

public static Node_Editor, editor
return Node_Editor,

knobSize public_oe property

public int knobSize
return int

mousePos public_oe property

public Vector2 mousePos
return Vector2

navigate public_oe property

public bool navigate
return bool

nodeBase public_oe static_oe property

public static GUIStyle nodeBase
return GUIStyle

nodeBox public_oe static_oe property

public static GUIStyle nodeBox
return GUIStyle

nodeButton public_oe static_oe property

public static GUIStyle nodeButton
return GUIStyle

nodeCanvas public_oe property

public Node_Canvas_Object, nodeCanvas
return Node_Canvas_Object,

nodeLabelBold public_oe static_oe property

public static GUIStyle nodeLabelBold
return GUIStyle

openedCanvas public_oe property

public string openedCanvas
return string

openedCanvasPath public_oe property

public string openedCanvasPath
return string

scrollWindow public_oe property

public bool scrollWindow
return bool

sideWindowWidth public_oe property

public int sideWindowWidth
return int