Class BoltNamedAnimationEvent
Called when an animation event points to TriggerAnimationEvent. This version allows you to use the string parameter as the event name.
Inheritance
Implements
Inherited Members
Namespace: Unity.VisualScripting
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
Type | Description |
---|---|
Value |
hookName
Declaration
protected override string hookName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
intParameter
The integer parameter passed to the function.
Declaration
[DoNotSerialize]
[PortLabel("Integer")]
public ValueOutput intParameter { get; }
Property Value
Type | Description |
---|---|
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
Type | Description |
---|---|
Value |
objectReferenceParameter
The Unity object parameter passed to the function.
Declaration
[DoNotSerialize]
[PortLabel("Object")]
public ValueOutput objectReferenceParameter { get; }
Property Value
Type | Description |
---|---|
Value |
Methods
AssignArguments(Flow, AnimationEvent)
Declaration
protected override void AssignArguments(Flow flow, AnimationEvent animationEvent)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
Animation |
animationEvent |
Overrides
Definition()
Declaration
protected override void Definition()
Overrides
ShouldTrigger(Flow, AnimationEvent)
Declaration
protected override bool ShouldTrigger(Flow flow, AnimationEvent animationEvent)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
Animation |
animationEvent |
Returns
Type | Description |
---|---|
bool |