Summary
[Pro-Only] Copies the
UnityEngine.AnimationClip.events
into this Animancer.AnimancerEvent.Sequence
.- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- AnimancerEvent
.Sequence
Syntax
public void AddAllEvents(AnimationClip animation)
Remarks
The
Animancer.AnimancerEvent.callback
of the new events will be empty and can be set by
Animancer.AnimancerEvent.Sequence.SetCallback(Animancer.StringReference,System.Action)
.
If you're going to play the `animation`, consider disabling UnityEngine.Animator.fireEvents
so the events copied by this method are not triggered as UnityEngine.AnimationEvent
s.
Otherwise they would still trigger in addition to the Animancer.AnimancerEvent
s copied here.
Parameters
Name | Type | Description |
---|---|---|
animation | AnimationClip |
Return Value
Type | Description |
---|---|
void |