C# Class NodeInput, Killing-Game

Exibir arquivo Open project: SNUGDC/Killing-Game Class Usage Examples

Public Properties

Property Type Description
body Node,
connection NodeOutput,
nodeID string
rect Rect
type IOtype

Public Methods

Method Description
Create ( Node, NodeBody, string InputName, IOtype type ) : NodeInput,

Creates a new NodeInput in NodeBody of specified type

Create ( string InputName, IOtype type ) : NodeInput,
DisplayLayout ( ) : void

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

DisplayLayout ( GUIContent content ) : void

Function to automatically draw and update the input

GetKnob ( ) : Rect

Get the rect of the knob right to the output

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

Set the input rect as labelrect in global canvas space and extend it to the left node edge

Method Details

Create() public static method

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

Create() public static method

public static Create ( string InputName, IOtype type ) : NodeInput,
InputName string
type IOtype
return NodeInput,

DisplayLayout() public method

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

DisplayLayout() public method

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

GetKnob() public method

Get the rect of the knob right to the output
public GetKnob ( ) : Rect
return Rect

OnSave() public method

public OnSave ( ) : void
return void

SetRect() public method

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

Property Details

body public_oe property

public Node, body
return Node,

connection public_oe property

public NodeOutput, connection
return NodeOutput,

nodeID public_oe property

public string nodeID
return string

rect public_oe property

public Rect rect
return Rect

type public_oe property

public IOtype type
return IOtype