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