Class BoltNamedAnimationEvent
Called when an animation event points to TriggerAnimationEvent. This version allows you to use the string parameter as the event name.
Inheritance
BoltNamedAnimationEvent
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[UnitCategory("Events/Animation")]
[UnitDisplay("Named Animation Event", shortTitle = "Animation Event")]
[TypeIcon(typeof(Animation))]
public sealed class BoltNamedAnimationEvent : ComponentEventUnit<AnimationEvent>, ISerializationCallbackReceiver, IEventHandlerUnit, IEventUnit, IBehaviourUnit, IUnit, IGraphElementWithDebugData, IBehaviourGraphElement, IGraphElementWithData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged, IGraphEventHandler<AnimationEvent>
Properties
floatParameter
The float parameter passed to the event.
Declaration
[DoNotSerialize]
[UnitPortDisplay("Float")]
public ValueOutput floatParameter { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
hookID
Declaration
public override EventHookID hookID { get; }
Property Value
| Type | Description |
|---|---|
| EventHookID |
Overrides
Ludiq.Bolt.EventHandlerUnit<UnityEngine.AnimationEvent>.hookID
intParameter
The integer parameter passed to the function.
Declaration
[DoNotSerialize]
[UnitPortDisplay("Integer")]
public ValueOutput intParameter { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
name
The name of the event. The event will only trigger if this value is equal to the string parameter passed in the animation event.
Declaration
[DoNotSerialize]
[UnitPortDisplay(showLabel = false)]
public ValueInput name { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
objectReferenceParameter
The Unity object parameter passed to the function.
Declaration
[DoNotSerialize]
[UnitPortDisplay("Object")]
public ValueOutput objectReferenceParameter { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
Methods
AssignArguments(Flow, AnimationEvent)
Declaration
protected override void AssignArguments(Flow flow, AnimationEvent animationEvent)
Parameters
| Type | Name | Description |
|---|---|---|
| Flow | flow | |
| AnimationEvent | animationEvent |
Overrides
Ludiq.Bolt.EventHandlerUnit<UnityEngine.AnimationEvent>.AssignArguments(Ludiq.Bolt.Flow, UnityEngine.AnimationEvent)
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.EventHandlerUnit<UnityEngine.AnimationEvent>.Definition()
ShouldInvoke(Flow, AnimationEvent)
Declaration
protected override bool ShouldInvoke(Flow flow, AnimationEvent animationEvent)
Parameters
| Type | Name | Description |
|---|---|---|
| Flow | flow | |
| AnimationEvent | animationEvent |
Returns
| Type | Description |
|---|---|
| Boolean |
Overrides
Ludiq.Bolt.EventHandlerUnit<UnityEngine.AnimationEvent>.ShouldInvoke(Ludiq.Bolt.Flow, UnityEngine.AnimationEvent)