Class AnimationEventSystem
An Animation Event System for managing animation on a component and returning animation events
Inheritance
System.Object
AnimationEventSystem
Namespace: GameplayAbilitySystem
Assembly: Assembly-CSharp-firstpass.dll
Syntax
public class AnimationEventSystem : MonoBehaviour
Fields
| Improve this Doc View SourceAnimationComplete
Delegate to execute when the player animation is complete
Declaration
public UnityEvent AnimationComplete
Field Value
| Type | Description |
|---|---|
| UnityEvent |
AnimationStarted
Delegate to execute when the player animation starts
Declaration
public UnityEvent AnimationStarted
Field Value
| Type | Description |
|---|---|
| UnityEvent |
CustomAnimationEvent
Delegate to execute when custom animation events are triggered on the character
Declaration
public CustomAnimationUnityEvent CustomAnimationEvent
Field Value
| Type | Description |
|---|---|
| CustomAnimationUnityEvent |
Methods
| Improve this Doc View SourceOnAnimationComplete()
Run when an animation completes
Declaration
public void OnAnimationComplete()
OnAnimationEvent(AnimationEvent)
Run when an animation event occurs
Declaration
public void OnAnimationEvent(AnimationEvent evt)
Parameters
| Type | Name | Description |
|---|---|---|
| AnimationEvent | evt |
OnAnimationStarted()
Run when an animation starts
Declaration
public void OnAnimationStarted()