프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Inputs | List |
||
Owner | |||
Pos | |||
UID | int |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
InputDefaultVals | List |
||
InputNames | List |
메소드 | 설명 | |
---|---|---|
AreFloatsDifferent ( float f1, float f2 ) : bool |
Compares two floats like normal, except that if they are both NaN, they are considered to be *equal*.
|
|
Clone ( ) : |
Generates a new node identical to this one, including the UID, but with no graph owner.
|
|
Clone ( |
Generates a new node identical to this one, including the UID, but with a different graph owner.
|
|
EmitCode ( StringBuilder outCode ) : void |
Appends the actual shader code that computes the output variable.
|
|
EmitDefs ( StringBuilder outCode ) : void |
Appends any necessary definitions to the given shader.
|
|
EmitProperties ( StringBuilder outCode ) : void |
Appends any necessary Shaderlab property definitions to the given shader.
|
|
GetInputDefaultValue ( int index ) : float | ||
GetInputName ( int index ) : string | ||
GetObjectData ( |
Outputs class data to a serializer.
|
|
Node ( |
||
Node ( |
||
OnAddedToGraph ( ) : void |
Called when this node's owner/uid is set.
|
|
OnGUI ( int &clickedInput, int isSelected ) : GUIResults |
Runs the GUI display window for this node. Returns what happened.
|
|
OnGraphLoaded ( ) : void |
Called after this node's owner is done loading from a file. This is better than a method with OnDeserializedAttribute because this method is only called *after* the graph itself is fully loaded.
|
|
OnPreProcess ( ) : IEnumerable |
Called right before the graph generates a shader. Special nodes can take this opportunity to modify the graph however they want. Returns any new nodes that have been added to the graph.
|
메소드 | 설명 | |
---|---|---|
CustomGUI ( ) : bool |
Child nodes can add custom GUI stuff through this method. Must return whether anything has actually changed.
|
|
MakeClone ( ) : |
Should create the right type of node with the same properties as this one. The base properties of all nodes don't need to be filled in by this method.
|
|
Node ( ) : System |
public static AreFloatsDifferent ( float f1, float f2 ) : bool | ||
f1 | float | |
f2 | float | |
리턴 | bool |
public Clone ( |
||
newOwner | ||
addToOwner | bool | |
idOffset | int | |
리턴 |
public EmitProperties ( StringBuilder outCode ) : void | ||
outCode | StringBuilder | |
리턴 | void |
public GetObjectData ( |
||
info | ||
context | ||
리턴 | void |
public Node ( |
||
pos | ||
inputs | List |
|
inputNames | List |
|
inputDefaultVals | List |
|
리턴 | System |
public Node ( |
||
info | ||
context | ||
리턴 | System |
public OnGUI ( int &clickedInput, int isSelected ) : GUIResults | ||
clickedInput | int | /// If the user clicked an input, /// the index of that input will be stored in this variable. /// |
isSelected | int | /// If this node's output was previously selected, pass -1. /// If an input was selected, pass the index of that input. /// Otherwise, pass anything else. /// |
리턴 | GUIResults |