AnimancerEvent.Sequence.

AnimancerEvent.

AddAllEvents(AnimationClip) Method

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(System.String,System.Action).

If you are going to play the `animation`, consider disabling UnityEngine.Animator.fireEvents so that the events copied by this method are not triggered as UnityEngine.AnimationEvents. Otherwise they would still trigger in addition to the Animancer.AnimancerEvents copied here.

Parameters

Name Type Description
animation AnimationClip

Return Value

Type Description
void