Wiki

Case Status
Log In

Wiki

 
Home ยป API Reference»FsmVariables
Index
Navigation
Community Wiki

FsmVariables

Collects all variables used by an FSM.

Properties

Type Property
static FsmVariables GlobalVariables
  Global variables stored in PlayMakerGlobals asset.

FsmFloat[]

FsmInt[]

FsmBool[]

FsmString[]

FsmVector2[]

FsmVector3[]

FsmRect[]

FsmQuaternion[]

FsmColor[]

FsmGameObject[]

FsmMaterial[]

FsmTexture[]

FsmObject[]

FsmEnum[]

FsmArray[]

FloatVariables

IntVariables

BoolVariables

StringVariables

Vector2Variables

Vector3Variables

RectVariables

QuaternionVariables

ColorVariables

GameObjectVariables

MaterialVariables

TextureVariables

ObjectVariables

EnumVariables

ArrayVariables

  Array for each variable type.

Methods

Return Method

FsmFloat

FsmInt

FsmBool

FsmString

FsmVector2

FsmVector3

FsmRect

FsmQuaternion

FsmColor

FsmGameObject

FsmMaterial

FsmTexture

FsmObject

FsmEnum

FsmArray

FindFsmFloat(string name)

FindFsmInt(string name)

FindFsmBool(string name)

FindFsmString(string name)

FindFsmVector2(string name)

FindFsmVector3(string name)

FindFsmRect(string name)

FindFsmQuaternion(string name)

FindFsmColor(string name)

FindFsmGameObject(string name)

FindFsmMaterial(string name)

FindFsmTexture(string name)

FindFsmObject(string name)

FindFsmEnum(string name)

FindFsmArray(string name)

 

Find a variable by name.

Returns null if not found.

FsmFloat

FsmInt

FsmBool

FsmString

FsmVector2

FsmVector3

FsmRect

FsmQuaternion

FsmColor

FsmGameObject

FsmMaterial

FsmTexture

FsmObject

FsmEnum

FsmArray

GetFsmFloat(string name)

GetFsmInt(string name)

GetFsmBool(string name)

GetFsmString(string name)

GetFsmVector2(string name)

GetFsmVector3(string name)

GetFsmRect(string name)

GetFsmQuaternion(string name)

GetFsmColor(string name)

GetFsmGameObject(string name)

GetFsmMaterial(string name)

GetFsmTexture(string name)

GetFsmObject(string name)

GetFsmEnum(string name)

GetFsmArray(string name)

 

Get a variable by name.

Searches local variables, then global variables.

If not found, returns a new variable with the specified name.

Usage Notes

Accessing Variables Values:

Fsm Variables have a Value property used to get/set the variable value.

1:
2:
FsmFloat myFloat = myFsm.GetFsmFloat("myFloatName");
myFloat.Value = 100;

Accessing Global Variables:

Use the static GlobalVariables property:

1:
2:
FsmFloat globalVar = FsmVariables.GlobalVariables.FindFsmFloat("myFloat");
globalVar.Value = 100;

 

See Also:

 

Tags:

Last modified on 4/23/2016 8:02 PM by User.

  • RSS Feed