AnimancerEvent.Sequence.

AnimancerEvent.

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

Summary

[Pro-Only] Adds the specified `callback` to the event with the specified `name`. Animancer.AnimancerEvent.GetCurrentParameter``1 will be used to get the callback's parameter.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
AnimancerEvent.Sequence

Syntax

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public Action AddCallback<T>(StringReference name, Action<T> callback)

Attributes

Type Description
MethodImplAttribute

Type Parameters

Name Description
T

Parameters

Name Type Description
name StringReference
callback Action<T>

Return Value

Type Description
Action

See Also

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