Arbor 3: FSM & BT Graph Editor
3.6.8
|
Class of Parameter to be stored in the ParameterContainer. More...
Public Types | |
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... | |
Public Member Functions | |
delegate void | DelegateOnChanged (Parameter parameter) |
Delegate called when changing Parameter. More... | |
void | OnChanged () |
Call when you change the value. More... | |
bool | SetFloat (float value) |
It wants to set the value of the Float type. More... | |
bool | TryGetFloat (out float value) |
Get the value of the Float type. More... | |
float | GetFloat (float defaultValue=default(float)) |
Get the value of the Float type. More... | |
bool | SetInt (int value) |
It wants to set the value of the Int type. More... | |
bool | TryGetInt (out int value) |
Get the value of the Int type. More... | |
int | GetInt (int defaultValue=default(int)) |
Get the value of the Int type. More... | |
bool | SetLong (long value) |
It wants to set the value of the Long type. More... | |
bool | TryGetLong (out long value) |
Get the value of the Long type. More... | |
long | GetLong (long defaultValue=default(long)) |
Get the value of the Long type. More... | |
bool | SetBool (bool value) |
It wants to set the value of the Bool type. More... | |
bool | TryGetBool (out bool value) |
Get the value of the Bool type. More... | |
bool | GetBool (bool defaultValue=default(bool)) |
Get the value of the Bool type. More... | |
bool | SetString (string value) |
It wants to set the value of the String type. More... | |
bool | TryGetString (out string value) |
Get the value of the String type. More... | |
string | GetString (string defaultValue="") |
Get the value of the String type. More... | |
bool | SetEnumInt (int value) |
It wants to set the value of the Enum type. More... | |
bool | TryGetEnumInt (out int value) |
Get the value of the Enum type. More... | |
int | GetEnumInt (int defaultValue=default(int)) |
Get the value of the Enum type. More... | |
bool | SetEnum (System.Enum value) |
It wants to set the value of the Enum type. More... | |
bool | TryGetEnum (out System.Enum value) |
Get the value of the Enum type. More... | |
System.Enum | GetEnum (System.Enum defaultValue=null) |
Get the value of the Enum type. More... | |
bool | SetEnum< TEnum > (TEnum value) |
Set Enum value More... | |
bool | TryGetEnum< TEnum > (out TEnum value) |
Get the value of the Enum type. More... | |
TEnum | GetEnum< TEnum > (TEnum defaultValue) |
Get the value of the Enum type. More... | |
TEnum | GetEnum< TEnum > () |
Get the value of the Enum type. More... | |
bool | SetVector2 (Vector2 value) |
It wants to set the value of the Vector2 type. More... | |
bool | TryGetVector2 (out Vector2 value) |
Get the value of the Vector2 type. More... | |
Vector2 | GetVector2 (Vector2 defaultValue) |
Get the value of the Vector2 type. More... | |
Vector2 | GetVector2 () |
Get the value of the Vector2 type. More... | |
bool | SetVector3 (Vector3 value) |
It wants to set the value of the Vector3 type. More... | |
bool | TryGetVector3 (out Vector3 value) |
Get the value of the Vector3 type. More... | |
Vector3 | GetVector3 (Vector3 defaultValue) |
Get the value of the Vector3 type. More... | |
Vector3 | GetVector3 () |
Get the value of the Vector3 type. More... | |
bool | SetQuaternion (Quaternion value) |
It wants to set the value of the Quaternion type. More... | |
bool | TryGetQuaternion (out Quaternion value) |
Get the value of the Quaternion type. More... | |
Quaternion | GetQuaternion (Quaternion defaultValue) |
Get the value of the Quaternion type. More... | |
Quaternion | GetQuaternion () |
Get the value of the Quaternion type. More... | |
bool | SetRect (Rect value) |
It wants to set the value of the Rect type. More... | |
bool | TryGetRect (out Rect value) |
Get the value of the Rect type. More... | |
Rect | GetRect (Rect defaultValue) |
Get the value of the Rect type. More... | |
Rect | GetRect () |
Get the value of the Rect type. More... | |
bool | SetBounds (Bounds value) |
It wants to set the value of the Bounds type. More... | |
bool | TryGetBounds (out Bounds value) |
Get the value of the Bounds type. More... | |
Bounds | GetBounds (Bounds defaultValue) |
Get the value of the Bounds type. More... | |
Bounds | GetBounds () |
Get the value of the Bounds type. More... | |
bool | SetColor (Color value) |
It wants to set the value of the Color type. More... | |
bool | TryGetColor (out Color value) |
Get the value of the Color type. More... | |
Color | GetColor (Color defaultValue) |
Get the value of the Color type. More... | |
Color | GetColor () |
Get the value of the Color type. More... | |
bool | SetGameObject (GameObject value) |
It wants to set the value of the GameObject type. More... | |
bool | TryGetGameObject (out GameObject value) |
Get the value of the GameObject type. More... | |
GameObject | GetGameObject (GameObject defaultValue=null) |
Get the value of the GameObject type. More... | |
bool | SetTransform (Transform value) |
It wants to set the value of the Transform type. More... | |
bool | TryGetTransform (out Transform value) |
Get the value of the Transform type. More... | |
Transform | GetTransform (Transform defaultValue=null) |
Get the value of the Transform type. More... | |
bool | SetRectTransform (RectTransform value) |
It wants to set the value of the RectTransform type. More... | |
bool | TryGetRectTransform (out RectTransform value) |
Get the value of the RectTransform type. More... | |
RectTransform | GetRectTransform (RectTransform defaultValue=null) |
Get the value of the RectTransform type. More... | |
bool | SetRigidbody (Rigidbody value) |
It wants to set the value of the Rigidbody type. More... | |
bool | TryGetRigidbody (out Rigidbody value) |
Get the value of the Rigidbody type. More... | |
Rigidbody | GetRigidbody (Rigidbody defaultValue=null) |
Get the value of the Rigidbody type. More... | |
bool | SetRigidbody2D (Rigidbody2D value) |
It wants to set the value of the Rigidbody2D type. More... | |
bool | TryGetRigidbody2D (out Rigidbody2D value) |
Get the value of the Rigidbody2D type. More... | |
Rigidbody2D | GetRigidbody2D (Rigidbody2D defaultValue=null) |
Get the value of the Rigidbody2D type. More... | |
bool | SetComponent (Component value) |
It wants to set the value of the Component type. More... | |
bool | TryGetComponent (out Component value) |
Get the value of the Component type. More... | |
Component | GetComponent (Component defaultValue=null) |
Get the value of the Component type. More... | |
bool | SetComponent< TComponent > (TComponent value) |
Set Component value More... | |
bool | TryGetComponent< TComponent > (out TComponent value) |
Get the value of the Component type. More... | |
TComponent | GetComponent< TComponent > (TComponent defaultValue=null) |
Get the value of the Component type. More... | |
bool | SetVariable (object value) |
Set Variable value More... | |
bool | TryGetVariable (out object value) |
Get the value of the Variable type. More... | |
object | GetVariable (object defaultValue=null) |
Get Variable value More... | |
bool | SetVariable< TVariable > (TVariable value) |
Set Variable value More... | |
bool | TryGetVariable< TVariable > (out TVariable value) |
Get the value of the Variable type. More... | |
TVariable | GetVariable< TVariable > (TVariable defaultValue=default(TVariable)) |
Get Variable value More... | |
bool | GetVariable< TVariable > (ref TVariable value) |
Get Variable value More... | |
override string | ToString () |
Convert value to string format. More... | |
string | ToString (string format) |
Convert value to string format. More... | |
Static Public Member Functions | |
static System.Type | GetValueType (Parameter.Type type, System.Type referenceType=null) |
Get the value type of the parameter. More... | |
Public Attributes | |
ParameterContainerInternal | container |
Container this parameter is stored. More... | |
int | id |
ID. More... | |
Type | type |
Type. More... | |
string | name |
Name. More... | |
ClassTypeReference | referenceType = new ClassTypeReference() |
the type of objectReferenceValue and Enum. More... | |
Properties | |
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... | |
int | enumIntValue [get, set] |
int Value of Enum type. 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... | |
Component | componentValue [get, set] |
Value of Component type. More... | |
Transform | transformValue [get, set] |
Value of Transform type. More... | |
RectTransform | rectTransformValue [get, set] |
Value of RectTransform type. More... | |
Rigidbody | rigidbodyValue [get, set] |
Value of Rigidbody type. More... | |
Rigidbody2D | rigidbody2DValue [get, set] |
Value of Rigidbody2D type. More... | |
VariableBase | variableObject [get, set] |
Object that contains Variable. 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... | |
Events | |
DelegateOnChanged | onChanged |
Callback function to be called when the value is changed. More... | |
Class of Parameter to be stored in the ParameterContainer.
|
strong |
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 | ) |
bool GetBool | ( | bool | defaultValue = default(bool) | ) |
Get the value of the Bool type.
defaultValue | Default value. It is returned when there is no parameter. |
Bounds GetBounds | ( | ) |
Get the value of the Bounds type.
Bounds GetBounds | ( | Bounds | defaultValue | ) |
Get the value of the Bounds type.
defaultValue | Default value. It is returned when there is no parameter. |
Color GetColor | ( | ) |
Get the value of the Color type.
Color GetColor | ( | Color | defaultValue | ) |
Get the value of the Color type.
defaultValue | Default value. It is returned when there is no parameter. |
Component GetComponent | ( | Component | defaultValue = null | ) |
Get the value of the Component type.
defaultValue | Default value. It is returned when there is no parameter. |
TComponent GetComponent< TComponent > | ( | TComponent | defaultValue = null | ) |
Get the value of the Component type.
defaultValue | Default value. It is returned when there is no parameter. |
TComponent | : | Component |
System.Enum GetEnum | ( | System.Enum | defaultValue = null | ) |
Get the value of the Enum type.
defaultValue | Default value. It is returned when there is no parameter. |
TEnum GetEnum< TEnum > | ( | ) |
Get the value of the Enum type.
TEnum | : | struct |
TEnum GetEnum< TEnum > | ( | TEnum | defaultValue | ) |
Get the value of the Enum type.
defaultValue | Default value. It is returned when there is no parameter. |
TEnum | : | struct |
int GetEnumInt | ( | int | defaultValue = default(int) | ) |
Get the value of the Enum type.
defaultValue | Default value. It is returned when there is no parameter. |
float GetFloat | ( | float | defaultValue = default(float) | ) |
Get the value of the Float type.
defaultValue | Default value. It is returned when there is no parameter. |
GameObject GetGameObject | ( | GameObject | defaultValue = null | ) |
Get the value of the GameObject type.
defaultValue | Default value. It is returned when there is no parameter. |
int GetInt | ( | int | defaultValue = default(int) | ) |
Get the value of the Int type.
defaultValue | Default value. It is returned when there is no parameter. |
long GetLong | ( | long | defaultValue = default(long) | ) |
Get the value of the Long type.
defaultValue | Default value. It is returned when there is no parameter. |
Quaternion GetQuaternion | ( | ) |
Get the value of the Quaternion type.
Quaternion GetQuaternion | ( | Quaternion | defaultValue | ) |
Get the value of the Quaternion type.
defaultValue | Default value. It is returned when there is no parameter. |
Rect GetRect | ( | ) |
Get the value of the Rect type.
Rect GetRect | ( | Rect | defaultValue | ) |
Get the value of the Rect type.
defaultValue | Default value. It is returned when there is no parameter. |
RectTransform GetRectTransform | ( | RectTransform | defaultValue = null | ) |
Get the value of the RectTransform type.
defaultValue | Default value. It is returned when there is no parameter. |
Rigidbody GetRigidbody | ( | Rigidbody | defaultValue = null | ) |
Get the value of the Rigidbody type.
defaultValue | Default value. It is returned when there is no parameter. |
Rigidbody2D GetRigidbody2D | ( | Rigidbody2D | defaultValue = null | ) |
Get the value of the Rigidbody2D type.
defaultValue | Default value. It is returned when there is no parameter. |
string GetString | ( | string | defaultValue = "" | ) |
Get the value of the String type.
defaultValue | Default value. It is returned when there is no parameter. |
Transform GetTransform | ( | Transform | defaultValue = null | ) |
Get the value of the Transform type.
defaultValue | Default value. It is returned when there is no parameter. |
|
static |
Get the value type of the parameter.
type | Type of parameter |
referenceType | Reference type (used for Enum, Component, Variable) |
object GetVariable | ( | object | defaultValue = null | ) |
bool GetVariable< TVariable > | ( | ref TVariable | value | ) |
TVariable GetVariable< TVariable > | ( | TVariable | defaultValue = default(TVariable) | ) |
Vector2 GetVector2 | ( | ) |
Get the value of the Vector2 type.
Vector2 GetVector2 | ( | Vector2 | defaultValue | ) |
Get the value of the Vector2 type.
defaultValue | Default value. It is returned when there is no parameter. |
Vector3 GetVector3 | ( | ) |
Get the value of the Vector3 type.
Vector3 GetVector3 | ( | Vector3 | defaultValue | ) |
Get the value of the Vector3 type.
defaultValue | Default value. It is returned when there is no parameter. |
void OnChanged | ( | ) |
Call when you change the value.
bool SetBool | ( | bool | value | ) |
It wants to set the value of the Bool type.
value | Value. |
bool SetBounds | ( | Bounds | value | ) |
It wants to set the value of the Bounds type.
value | Value. |
bool SetColor | ( | Color | value | ) |
It wants to set the value of the Color type.
value | Value. |
bool SetComponent | ( | Component | value | ) |
It wants to set the value of the Component type.
value | Value. |
bool SetComponent< TComponent > | ( | TComponent | value | ) |
Set Component value
value | Value |
TComponent | : | Component |
bool SetEnum | ( | System.Enum | value | ) |
It wants to set the value of the Enum type.
value | Value. |
bool SetEnum< TEnum > | ( | TEnum | value | ) |
Set Enum value
value | Value |
TEnum | : | struct |
bool SetEnumInt | ( | int | value | ) |
It wants to set the value of the Enum type.
value | Value. |
bool SetFloat | ( | float | value | ) |
It wants to set the value of the Float type.
value | Value. |
bool SetGameObject | ( | GameObject | value | ) |
It wants to set the value of the GameObject type.
value | Value. |
bool SetInt | ( | int | value | ) |
It wants to set the value of the Int type.
value | Value. |
bool SetLong | ( | long | value | ) |
It wants to set the value of the Long type.
value | Value. |
bool SetQuaternion | ( | Quaternion | value | ) |
It wants to set the value of the Quaternion type.
value | Value. |
bool SetRect | ( | Rect | value | ) |
It wants to set the value of the Rect type.
value | Value. |
bool SetRectTransform | ( | RectTransform | value | ) |
It wants to set the value of the RectTransform type.
value | Value. |
bool SetRigidbody | ( | Rigidbody | value | ) |
It wants to set the value of the Rigidbody type.
value | Value. |
bool SetRigidbody2D | ( | Rigidbody2D | value | ) |
It wants to set the value of the Rigidbody2D type.
value | Value. |
bool SetString | ( | string | value | ) |
It wants to set the value of the String type.
value | Value. |
bool SetTransform | ( | Transform | value | ) |
It wants to set the value of the Transform type.
value | Value. |
bool SetVariable | ( | object | value | ) |
Set Variable value
value | Value |
bool SetVariable< TVariable > | ( | TVariable | value | ) |
bool SetVector2 | ( | Vector2 | value | ) |
It wants to set the value of the Vector2 type.
value | Value. |
bool SetVector3 | ( | Vector3 | value | ) |
It wants to set the value of the Vector3 type.
value | Value. |
override string ToString | ( | ) |
Convert value to string format.
string ToString | ( | string | format | ) |
Convert value to string format.
format | Numeric format string (Int, Long, Float only) |
For more information about numeric format specifiers, see Standard Numeric Format Strings and Custom Numeric Format Strings.
bool TryGetBool | ( | out bool | value | ) |
Get the value of the Bool type.
value | Value. |
bool TryGetBounds | ( | out Bounds | value | ) |
Get the value of the Bounds type.
value | Value. |
bool TryGetColor | ( | out Color | value | ) |
Get the value of the Color type.
value | Value. |
bool TryGetComponent | ( | out Component | value | ) |
Get the value of the Component type.
value | Value. |
bool TryGetComponent< TComponent > | ( | out TComponent | value | ) |
Get the value of the Component type.
value | The value you get. |
TComponent | : | Component |
bool TryGetEnum | ( | out System.Enum | value | ) |
Get the value of the Enum type.
value | The value you get. |
bool TryGetEnum< TEnum > | ( | out TEnum | value | ) |
Get the value of the Enum type.
value | The value you get. |
TEnum | : | struct |
bool TryGetEnumInt | ( | out int | value | ) |
Get the value of the Enum type.
value | The value you get. |
bool TryGetFloat | ( | out float | value | ) |
Get the value of the Float type.
value | The value you get. |
bool TryGetGameObject | ( | out GameObject | value | ) |
Get the value of the GameObject type.
value | Value. |
bool TryGetInt | ( | out int | value | ) |
Get the value of the Int type.
value | Value. |
bool TryGetLong | ( | out long | value | ) |
Get the value of the Long type.
value | Value. |
bool TryGetQuaternion | ( | out Quaternion | value | ) |
Get the value of the Quaternion type.
value | Value. |
bool TryGetRect | ( | out Rect | value | ) |
Get the value of the Rect type.
value | Value. |
bool TryGetRectTransform | ( | out RectTransform | value | ) |
Get the value of the RectTransform type.
value | Value. |
bool TryGetRigidbody | ( | out Rigidbody | value | ) |
Get the value of the Rigidbody type.
value | Value. |
bool TryGetRigidbody2D | ( | out Rigidbody2D | value | ) |
Get the value of the Rigidbody2D type.
value | Value. |
bool TryGetString | ( | out string | value | ) |
Get the value of the String type.
value | Value. |
bool TryGetTransform | ( | out Transform | value | ) |
Get the value of the Transform type.
value | Value. |
bool TryGetVariable | ( | out object | value | ) |
Get the value of the Variable type.
value | The value you get. |
bool TryGetVariable< TVariable > | ( | out TVariable | value | ) |
bool TryGetVector2 | ( | out Vector2 | value | ) |
Get the value of the Vector2 type.
value | Value. |
bool TryGetVector3 | ( | out Vector3 | value | ) |
Get the value of the Vector3 type.
value | Value. |
ParameterContainerInternal container |
Container this parameter is stored.
int id |
ID.
string name |
Name.
ClassTypeReference referenceType = new ClassTypeReference() |
the type of objectReferenceValue and Enum.
Type type |
Type.
|
getset |
Value of Bool type.
|
getset |
Value of Bounds type.
|
getset |
Value of Color type.
|
getset |
Component type
|
getset |
Value of Component type.
|
getset |
int Value of Enum type.
|
getset |
Value of Enum type.
|
getset |
Value of Float type.
|
getset |
Value of GameObject type.
|
getset |
Value of Int type.
|
get |
Returns whether this parameter is of type Enum.
|
get |
Returns whether this parameter can be get from an external graph.
(For parameters in graph)
|
get |
Returns whether this parameter can be set from an external graph.
(For parameters in graph)
|
getset |
Value of Long type.
|
getset |
Value of Object type.
|
getset |
Value of Quaternion type.
|
getset |
Value of RectTransform type.
|
getset |
Value of Rect type.
|
getset |
Value of Rigidbody2D type.
|
getset |
Value of Rigidbody type.
|
getset |
Value of String type.
|
getset |
Value of Transform type.
|
getset |
Get values according to type.
|
get |
Get value type.
|
getset |
Object that contains Variable.
|
getset |
Value of Variable type.
|
getset |
Value of Vector2 type.
|
getset |
Value of Vector3 type.
DelegateOnChanged onChanged |
Callback function to be called when the value is changed.