C# 클래스 Node_Editor, Killing-Game

상속: Editor
파일 보기 프로젝트 열기: SNUGDC/Killing-Game 1 사용 예제들

공개 프로퍼티들

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

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

ApplyChanges() 공개 메소드

public ApplyChanges ( ) : void
리턴 void

ColorToTex() 공개 정적인 메소드

public static ColorToTex ( Color col ) : Texture2D
col Color
리턴 UnityEngine.Texture2D

ContextCallback() 공개 메소드

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

DrawNodeCurve() 공개 정적인 메소드

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
리턴 void

DrawNodeCurve() 공개 정적인 메소드

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

DrawSideWindow() 공개 메소드

public DrawSideWindow ( ) : void
리턴 void

LoadNodeCanvas() 공개 메소드

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

NewNodeCanvas() 공개 메소드

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

NodeAtPosition() 공개 메소드

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

OnGUI() 공개 메소드

public OnGUI ( ) : void
리턴 void

SaveNodeCanvas() 공개 메소드

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

Tint() 공개 정적인 메소드

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

checkInit() 공개 메소드

public checkInit ( ) : void
리턴 void

프로퍼티 상세

Background 공개적으로 정적으로 프로퍼티

public static Texture2D,UnityEngine Background
리턴 UnityEngine.Texture2D

ConnectorKnob 공개적으로 정적으로 프로퍼티

public static Texture2D,UnityEngine ConnectorKnob
리턴 UnityEngine.Texture2D

OnLoad 공개적으로 프로퍼티

public SaveLoadEvent OnLoad
리턴 SaveLoadEvent

OnSave 공개적으로 프로퍼티

public SaveLoadEvent OnSave
리턴 SaveLoadEvent

activeNode 공개적으로 프로퍼티

public Node, activeNode
리턴 Node,

connectOutput 공개적으로 프로퍼티

public NodeOutput, connectOutput
리턴 NodeOutput,

dragNode 공개적으로 프로퍼티

public bool dragNode
리턴 bool

editor 공개적으로 정적으로 프로퍼티

public static Node_Editor, editor
리턴 Node_Editor,

knobSize 공개적으로 프로퍼티

public int knobSize
리턴 int

mousePos 공개적으로 프로퍼티

public Vector2 mousePos
리턴 Vector2

navigate 공개적으로 프로퍼티

public bool navigate
리턴 bool

nodeBase 공개적으로 정적으로 프로퍼티

public static GUIStyle nodeBase
리턴 GUIStyle

nodeBox 공개적으로 정적으로 프로퍼티

public static GUIStyle nodeBox
리턴 GUIStyle

nodeButton 공개적으로 정적으로 프로퍼티

public static GUIStyle nodeButton
리턴 GUIStyle

nodeCanvas 공개적으로 프로퍼티

public Node_Canvas_Object, nodeCanvas
리턴 Node_Canvas_Object,

nodeLabelBold 공개적으로 정적으로 프로퍼티

public static GUIStyle nodeLabelBold
리턴 GUIStyle

openedCanvas 공개적으로 프로퍼티

public string openedCanvas
리턴 string

openedCanvasPath 공개적으로 프로퍼티

public string openedCanvasPath
리턴 string

scrollWindow 공개적으로 프로퍼티

public bool scrollWindow
리턴 bool

sideWindowWidth 공개적으로 프로퍼티

public int sideWindowWidth
리턴 int