AnimancerEvent.

AnimancerEvent.Invocation Struct

Summary

An Animancer.AnimancerEvent and other associated details used to invoke it.
Assembly
Animancer.dll
Namespace
Animancer
Base Types
  • ValueType
graph BT Type-->Base0["ValueType"] Type["AnimancerEvent.Invocation"] class Type type-node

Syntax

public readonly struct AnimancerEvent.Invocation : ValueType

Constructors

Name Summary
Invocation(AnimancerEvent, StringReference, AnimancerState) Creates a new Animancer.AnimancerEvent.Invocation.

Fields

Name Constant Value Summary
Event
The Animancer.AnimancerEvent.
Name
The name of the Animancer.AnimancerEvent.Invocation.Event.
State
The Animancer.AnimancerState triggering the Animancer.AnimancerEvent.Invocation.Event.

Properties

Name Value Summary
Current AnimancerEvent.Invocation
The details of the event currently being triggered.
static

Methods

Name Value Summary
GetBoundCallback() Action
Returns the callback registered in the Animancer.AnimancerGraph.Events with the Animancer.AnimancerEvent.Invocation.Name (or null if there isn't one).
Invoke() void
Sets the Animancer.AnimancerEvent.Invocation.Current, invokes the Animancer.AnimancerEvent.callback, then reverts the Animancer.AnimancerEvent.Invocation.Current.
InvokeBoundCallback() void
Invokes the callback bound to the Animancer.AnimancerEvent.Invocation.Name in the Animancer.AnimancerGraph.Events.
ToString() string
Returns a string describing the contents of this invocation.