C# Class NodeOutput, Killing-Game

Inheritance: UnityEngine.ScriptableObject
Show file Open project: SNUGDC/Killing-Game Class Usage Examples

Public Properties

Property Type Description
body Node,
connections List
nodeID string
rect Rect
type IOtype

Public Methods

Method Description
Create ( Node, NodeBody, string OutputName, IOtype type ) : NodeOutput,

Creates a new NodeOutput in NodeBody of specified type

DisplayLayout ( ) : void

Function to automatically draw and update the output with a label for it's name

DisplayLayout ( GUIContent content ) : void

Function to automatically draw and update the output

GetKnob ( ) : Rect

Get the rect of the knob left to the input

OnSave ( ) : void
SetRect ( Rect labelRect ) : void

Set the output rect as labelrect in global canvas space and extend it to the right node edge

Method Details

Create() public static method

Creates a new NodeOutput in NodeBody of specified type
public static Create ( Node, NodeBody, string OutputName, IOtype type ) : NodeOutput,
NodeBody Node,
OutputName string
type IOtype
return NodeOutput,

DisplayLayout() public method

Function to automatically draw and update the output with a label for it's name
public DisplayLayout ( ) : void
return void

DisplayLayout() public method

Function to automatically draw and update the output
public DisplayLayout ( GUIContent content ) : void
content GUIContent
return void

GetKnob() public method

Get the rect of the knob left to the input
public GetKnob ( ) : Rect
return Rect

OnSave() public method

public OnSave ( ) : void
return void

SetRect() public method

Set the output rect as labelrect in global canvas space and extend it to the right node edge
public SetRect ( Rect labelRect ) : void
labelRect Rect
return void

Property Details

body public property

public Node, body
return Node,

connections public property

public List connections
return List

nodeID public property

public string nodeID
return string

rect public property

public Rect rect
return Rect

type public property

public IOtype type
return IOtype