ActionPlayer

MonoBehaviour component for playing actions in the scene.

Definition

Namespace: Paragon.Core.ActionSystem Assembly: Paragon.dll

public class ActionPlayer : SerializedMonoBehaviour

Inheritance: MonoBehaviourSerializedMonoBehaviourActionPlayer

Properties

HasAction

Gets whether an action is assigned.

public bool HasAction { get; }

Methods

Play()

Executes the assigned action asynchronously.

public async void Play();

Stop()

Cancels the running action.

Usage

  1. Add ActionPlayer component to a GameObject

  2. Assign an action in the Inspector (polymorphic selection)

  3. Call Play() to execute, Stop() to cancel

See Also

Last updated

Was this helpful?