C# Class Node_Editor, Killing-Game

Inheritance: Editor
Show file 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 static property

public static Texture2D,UnityEngine Background
return UnityEngine.Texture2D

ConnectorKnob public static property

public static Texture2D,UnityEngine ConnectorKnob
return UnityEngine.Texture2D

OnLoad public property

public SaveLoadEvent OnLoad
return SaveLoadEvent

OnSave public property

public SaveLoadEvent OnSave
return SaveLoadEvent

activeNode public property

public Node, activeNode
return Node,

connectOutput public property

public NodeOutput, connectOutput
return NodeOutput,

dragNode public property

public bool dragNode
return bool

editor public static property

public static Node_Editor, editor
return Node_Editor,

knobSize public property

public int knobSize
return int

mousePos public property

public Vector2 mousePos
return Vector2

navigate public property

public bool navigate
return bool

nodeBase public static property

public static GUIStyle nodeBase
return GUIStyle

nodeBox public static property

public static GUIStyle nodeBox
return GUIStyle

nodeButton public static property

public static GUIStyle nodeButton
return GUIStyle

nodeCanvas public property

public Node_Canvas_Object, nodeCanvas
return Node_Canvas_Object,

nodeLabelBold public static property

public static GUIStyle nodeLabelBold
return GUIStyle

openedCanvas public property

public string openedCanvas
return string

openedCanvasPath public property

public string openedCanvasPath
return string

scrollWindow public property

public bool scrollWindow
return bool

sideWindowWidth public property

public int sideWindowWidth
return int