ActionPlayer
MonoBehaviour component for playing actions in the scene.
Definition
Namespace: Paragon.Core.ActionSystem
Assembly: Paragon.dll
public class ActionPlayer : SerializedMonoBehaviourInheritance: MonoBehaviour → SerializedMonoBehaviour → ActionPlayer
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
Add
ActionPlayercomponent to a GameObjectAssign an action in the Inspector (polymorphic selection)
Call
Play()to execute,Stop()to cancel
See Also
Last updated
Was this helpful?