Script Actions
Script actions give you direct access to public properties and methods on components when no dedicated PlayMaker action exists.
Third-party assets often provide a public API, which exposes properties and methods you can use at runtime.
Get Property Actions
Read the value of a public property.
Read a public property value from a component instance.
Read a public property value from a referenced object.
Read a public static property value from a type.
Read a property value from a variable object.
Set Property Actions
Write a value to a public property.
Write a value to a public property on a component instance.
Write a value to a public property on a referenced object.
Write a value to a public static property on a type.
Write a property value on a variable object.
Call Method Actions
Call a method with optional parameters.
Call a method on a component instance, with optional parameters.
Call a static method on a type, with optional parameters.
Drag And Drop Components
Drag a component into the action list to quickly select an action for it:
Hint
Lock the selection in the FSM Editor when dragging components from other GameObjects.
Using Script Actions
Script actions are more programmer-focused and require understanding how the target API works.
They are ideal when:
- No PlayMaker-specific actions exist for a third-party asset.
- You are following a C# tutorial and want to recreate the logic using FSMs.
If PlayMaker actions are available for the API you are working with, it is generally best to use those instead.
Custom Variables
Some APIs use custom types not built into Unity or PlayMaker.
You can define Custom Variables to work with these types in FSMs.