Class of Parameter to be stored in the ParameterContainer.
More...
|
enum | Type {
Int,
Float,
Bool,
GameObject,
String,
Enum,
Vector2 = 1000,
Vector3,
Quaternion,
Rect,
Bounds,
Color,
Transform = 2000,
RectTransform,
Rigidbody,
Rigidbody2D,
Component,
Long,
Variable = 3000
} |
| Parameter type. More...
|
|
|
ClassTypeReference | componentType [get, set] |
| Component type More...
|
|
bool | isPublicSet [get] |
| Returns whether this parameter can be set from an external graph. More...
|
|
bool | isPublicGet [get] |
| Returns whether this parameter can be get from an external graph. More...
|
|
int | intValue [get, set] |
| Value of Int type. More...
|
|
long | longValue [get, set] |
| Value of Long type. More...
|
|
float | floatValue [get, set] |
| Value of Float type. More...
|
|
bool | boolValue [get, set] |
| Value of Bool type. More...
|
|
string | stringValue [get, set] |
| Value of String type. More...
|
|
bool | isEnum [get] |
| Returns whether this parameter is of type Enum. More...
|
|
System.Enum | enumValue [get, set] |
| Value of Enum type. More...
|
|
Vector2 | vector2Value [get, set] |
| Value of Vector2 type. More...
|
|
Vector3 | vector3Value [get, set] |
| Value of Vector3 type. More...
|
|
Quaternion | quaternionValue [get, set] |
| Value of Quaternion type. More...
|
|
Rect | rectValue [get, set] |
| Value of Rect type. More...
|
|
Bounds | boundsValue [get, set] |
| Value of Bounds type. More...
|
|
Color | colorValue [get, set] |
| Value of Color type. More...
|
|
Object | objectReferenceValue [get, set] |
| Value of Object type. More...
|
|
GameObject | gameObjectValue [get, set] |
| Value of GameObject type. More...
|
|
object | variableValue [get, set] |
| Value of Variable type. More...
|
|
System.Type | valueType [get] |
| Get value type. More...
|
|
object | value [get, set] |
| Get values according to type. More...
|
|
Class of Parameter to be stored in the ParameterContainer.
Parameter type.
Enumerator |
---|
Int |
Int type.
|
Float |
Float type.
|
Bool |
Bool type.
|
GameObject |
GameObject type.
|
String |
String type.
|
Enum |
Enum type.
|
Vector2 |
Vector2 type.
|
Vector3 |
Vector3 type.
|
Quaternion |
Quaternion type.
|
Rect |
Rect type.
|
Bounds |
Bounds type.
|
Color |
Color type.
|
Transform |
Transform type.
|
RectTransform |
RectTransform type.
|
Rigidbody |
Rigidbody type.
|
Rigidbody2D |
Rigidbody2D type.
|
Component |
Component type.
|
Long |
Long type.
|
Variable |
Variable type.
|
delegate void DelegateOnChanged |
( |
Parameter |
parameter | ) |
|
Delegate called when changing Parameter.
- Parameters
-
static System.Type GetValueType |
( |
Parameter.Type |
type, |
|
|
System.Type |
referenceType = null |
|
) |
| |
|
static |
Get the value type of the parameter.
- Parameters
-
type | Type of parameter |
referenceType | Reference type (used for Enum, Component, Variable) |
- Returns
- Value type of the parameter
bool GetVariable< T > |
( |
ref T |
value | ) |
|
Get Variable value
- Template Parameters
-
- Parameters
-
- Returns
- Succeeds if true, failure if false
Call when you change the value.
bool SetEnum< TEnum > |
( |
TEnum |
value | ) |
|
Set Enum value
- Parameters
-
void SetVariable< T > |
( |
T |
value | ) |
|
Set Variable value
- Template Parameters
-
- Parameters
-
override string ToString |
( |
| ) |
|
Convert value to string format.
- Returns
- Converted string
string ToString |
( |
string |
format | ) |
|
bool TryGetEnum< TEnum > |
( |
out TEnum |
value | ) |
|
Get the value of the Enum type.
- Parameters
-
- Returns
- Returns true if it succeeds.
Container this parameter is stored.
the type of objectReferenceValue and Enum.
GameObject gameObjectValue |
|
getset |
Value of GameObject type.
Returns whether this parameter is of type Enum.
Returns whether this parameter can be get from an external graph.
(For parameters in graph)
Returns whether this parameter can be set from an external graph.
(For parameters in graph)
Object objectReferenceValue |
|
getset |
Quaternion quaternionValue |
|
getset |
Value of Quaternion type.
Get values according to type.
Callback function to be called when the value is changed.