Skip to content

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.

Get Component Property

Read a public property value from a component instance.

Get Object Property

Read a public property value from a referenced object.

Get Static Property

Read a public static property value from a type.

Get Variable Property

Read a property value from a variable object.

Set Property Actions

Write a value to a public property.

Set Component Property

Write a value to a public property on a component instance.

Set Object Property

Write a value to a public property on a referenced object.

Set Static Property

Write a value to a public static property on a type.

Set Variable Property

Write a property value on a variable object.

Call Method Actions

Call a method with optional parameters.

Call Component Method

Call a method on a component instance, with optional parameters.

Call Static Method

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.