AnimancerEvent.Sequence.

AnimancerEvent.

AddCallbacks<T>(StringReference, Action<T>) Method

Summary

[Pro-Only] Adds the specified `callback` to every event with the specified `name`. Animancer.AnimancerEvent.GetCurrentParameter``1 will be used to get the callback's parameter and the parametized callback will be returned in case it needs to be removed later. If no events are found, this method returns null.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
AnimancerEvent.Sequence

Syntax

public Action AddCallbacks<T>(StringReference name, Action<T> callback)

Type Parameters

Name Description
T

Parameters

Name Type Description
name StringReference
callback Action<T>

Return Value

Type Description
Action

See Also

  • Animancer.AnimancerEvent.Sequence.AddCallback``1(Animancer.StringReference,System.Action{``0})
  • Animancer.AnimancerEvent.Sequence.IndexOf(Animancer.StringReference,System.Int32)