Свойство | Тип | Описание | |
---|---|---|---|
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 EmitCode ( StringBuilder outCode ) : void | ||
outCode | StringBuilder | |
Результат | void |
public EmitDefs ( StringBuilder outCode ) : void | ||
outCode | StringBuilder | |
Результат | void |
public EmitProperties ( StringBuilder outCode ) : void | ||
outCode | StringBuilder | |
Результат | void |
public GetInputDefaultValue ( int index ) : float | ||
index | int | |
Результат | float |
public GetInputName ( int index ) : string | ||
index | int | |
Результат | string |
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 |