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: Unity.VisualScripting
Syntax
[UnitCategory("Events/Animation")]
[UnitShortTitle("Animation Event")]
[UnitTitle("Named Animation Event")]
[TypeIcon(typeof(Animation))]
public sealed class BoltNamedAnimationEvent : MachineEventUnit<AnimationEvent>, IEventUnit, IUnit, IGraphElementWithDebugData, IGraphEventListener, IGraphElementWithData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IGraphEventHandler<AnimationEvent>
Properties
floatParameter
The float parameter passed to the event.
Declaration
[DoNotSerialize]
[PortLabel("Float")]
public ValueOutput floatParameter { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
hookName
Declaration
protected override string hookName { get; }
Property Value
| Type | Description |
|---|---|
| String |
Overrides
Unity.VisualScripting.MachineEventUnit<UnityEngine.AnimationEvent>.hookName
intParameter
The integer parameter passed to the function.
Declaration
[DoNotSerialize]
[PortLabel("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]
public ValueInput name { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
objectReferenceParameter
The Unity object parameter passed to the function.
Declaration
[DoNotSerialize]
[PortLabel("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
Unity.VisualScripting.EventUnit<UnityEngine.AnimationEvent>.AssignArguments(Unity.VisualScripting.Flow, UnityEngine.AnimationEvent)
Definition()
Declaration
protected override void Definition()
Overrides
Unity.VisualScripting.EventUnit<UnityEngine.AnimationEvent>.Definition()
ShouldTrigger(Flow, AnimationEvent)
Declaration
protected override bool ShouldTrigger(Flow flow, AnimationEvent animationEvent)
Parameters
| Type | Name | Description |
|---|---|---|
| Flow | flow | |
| AnimationEvent | animationEvent |
Returns
| Type | Description |
|---|---|
| Boolean |
Overrides
Unity.VisualScripting.EventUnit<UnityEngine.AnimationEvent>.ShouldTrigger(Unity.VisualScripting.Flow, UnityEngine.AnimationEvent)