Properties
Read and write State Machine variables from anywhere
Last updated
Read and write State Machine variables from anywhere
Properties allow you to read and write State Machine variables from anywhere in Game Creator 2's visual scripting system.
Read values from State Machine or Runner variables. Available in any Game Creator 2 property field.
Animation Clip
โ
โ
Get an animation clip reference
Audio Clip
โ
โ
Get an audio clip reference
Bool
โ
โ
Get a boolean (true/false) value
Color
โ
โ
Get a color value (RGBA)
Decimal
โ
โ
Get a decimal number value
Direction
โ
โ
Get a direction vector
GameObject
โ
โ
Get a GameObject reference
Material
โ
โ
Get a material reference
Position
โ
โ
Get a world position (Vector3)
Rotation
โ
โ
Get a rotation value (Quaternion/Euler)
Scale
โ
โ
Get a scale vector
Sprite
โ
โ
Get a sprite reference
String
โ
โ
Get a text string value
Texture
โ
โ
Get a texture reference
Write values to State Machine or Runner variables. Available in Game Creator 2 Set property actions.
Animation Clip
โ
โ
Set an animation clip reference
Bool
โ
โ
Set a boolean (true/false) value
Color
โ
โ
Set a color value (RGBA)
Float
โ
โ
Set a floating-point number
GameObject
โ
โ
Set a GameObject reference
Material
โ
โ
Set a material reference
Sprite
โ
โ
Set a sprite reference
String
โ
โ
Set a text string value
Texture
โ
โ
Set a texture reference
Vector3
โ
โ
Set a 3D vector (position/direction/scale)
In any Game Creator 2 action that accepts a property value, click the property dropdown
Navigate to Variables โ State Machine or Variables โ State Machine Runner
Select the variable you want to read or write
For Runner properties, also specify the target GameObject
Shared state across all instances
โ
Per-instance behavior (each enemy has own state)
โ
Global game state (game mode, settings)
โ
Individual character state (health, ammo)
โ
Prefab-based objects
โ
Singleton managers
โ
Best Practice: Use Runner properties for most gameplay scenarios. Use Asset properties only for truly global state that should be shared across all instances.
In addition to single GameObject properties, State Machine 2 supports GameObject List properties for working with collections of objects.
Get GameObject List
Read a list of GameObjects from a State Machine variable
Set GameObject List
Write a list of GameObjects to a State Machine variable
Get a reference to the State Machine Runner's instance GameObject:
Get Instance
Returns the GameObject that the State Machine Runner is attached to
Use the Instance property when you need to reference the runner's GameObject from within the state machine logic.
Last updated
Action: Set Text
โโ Text: [Property] Variables โ State Machine Runner Variable
โโ Variable: "PlayerName"
โโ Runner: SelfAction: Change Material Color
โโ Color: [Property] Variables โ State Machine Variable
โโ Variable: "HighlightColor"