🧰
Developer
  • ENGAGE SDK overview
  • Setting up the ENGAGE SDK
    • Registering as an ENGAGE developer
    • Setting up your local git repository
    • Installing the Unity Editor
    • Opening the ENGAGE SDK Unity project
    • Checking for SDK updates
    • Installing a platform build module
  • ENGAGE SDK project folders
  • General guidelines for 3D models
    • Optimizing 3D models
  • Locations
    • Guidelines for locations
    • Creating a new location
    • Building a location bundle
    • Testing a location locally on Windows
    • Configuring an object as a teleport target
    • Configuring the start position
    • Seats
      • Creating a seat
      • Using the summon to seat system
    • Network states
      • Network State Manager
      • Location Network States
      • Example network state configurations
        • Network state toggle object
        • Network state animation start/stop
        • Network state change animation
          • Creating an animation in Unity
          • Using Animator.Play(string)
          • Defining Animator transitions
          • Using Animator.SetTrigger(string)
        • Network state sync animation
        • Network state position toggle
        • Network state automatic door
        • Network state toggle skybox
        • Network state change materials
    • Adding grabable objects to a location
      • Resetting network objects with a button
      • Resetting network objects when out of bounds
    • Locations reference information
      • Basic requirements for a location
  • Immersive Effects (IFX)
    • Guidelines for IFX
    • Creating an IFX
    • Building an IFX bundle
    • Testing IFX locally on Windows
    • Specialized IFX
      • Animated IFX
        • Animation overrides
          • Legacy animations
          • Animator animations
          • Configuring additional Effect Life Run Control properties
      • Audio IFX
      • Interactive IFX
  • List of available prefabs
  • Available scripts
    • External Video Player
  • Profiling
  • Publishing to ENGAGE
    • Publishing checklists
    • Pushing files to your GitHub repository
  • AFX
    • Getting started
      • Changelog
    • AFX Graphs
      • Creating an AFX graph
      • Editing an AFX graph
      • Navigation and keyboard shortcuts
      • Adding an AFX graph to a game object
      • Nodes
      • Ports
      • Connections
      • Flows
        • Starting a flow
        • Using multiple flows
        • Chaining flows
        • Controlling flows
      • References
      • Using AFX Events
    • Networking AFX
      • Network State Modules
      • Ownership of networked objects
    • Animation curves
    • Node dictionary
      • ENGAGE
        • AFX Companion
          • Constant Collision
          • Grab Object
          • PathData
        • Networking
          • Network State Modules
        • Physics
        • Player
        • Seat
      • Events
        • Collision
        • Unity
        • AFX Events
      • Flow
      • Reference
      • Unity
        • Component
          • Animation
            • Set Parameters
          • Audio
            • Audio Reverb Zone
            • Audio Source
          • Collider
          • FX
          • Rendering
            • Camera
            • Light
            • Material
          • UI
        • Constraint
        • GameObject
        • Input
        • Physics
          • Raycast
            • Layer Mask
          • RigidBody
            • Joint
              • Hinge
              • Spring
          • Wheel Collider
        • Time
        • Transform
          • Get
          • Set
          • Space Switching
      • Variable
        • Bool
        • Comparison
        • Float
        • Int
        • List
        • Math
          • MathF
        • String
        • Unity Component
        • Vector
          • Quaternion
          • Vector2
          • Vector 3
            • Vector3 Math
    • Sample graphs
Powered by GitBook
On this page
  • Set Parameters nodes
  • Crossfade
  • Play
  • Set Layer Weight
  • Get Animator State Info
  • Set Speed
  1. AFX
  2. Node dictionary
  3. Unity
  4. Component

Animation

PreviousComponentNextSet Parameters

Last updated 7 months ago

Set Parameters nodes

See Set Parameters.

Crossfade

Create a cross-fade from the current state to another state. For more information, refer to in the Unity documentation.

Inputs:

Name
Type
Description

Enter

Flow

Flow to activate the node.

Animator In

Animator

Reference to an Animator object.

Fixed Time

Boolean [editable]

If true, times are in seconds. If false, times are normalized (fractional) times.

State Name

String [editable]

The name of the state to cross-fade to.

State Name Hash

Integer [editable]

The hash name of the state.

Transition Duration

Float [editable]

The duration of the transition.

Layer

Integer [editable]

Time Offset

Float [editable]

An offset into the destination state to transition to. For example, a Time Offset of 0.5, when Fixed Time is false, will cross-fade halfway into the the destination state.

Transition Time

Float [editable]

The time of the transition.

Outputs:

Name
Type
Description

Exit

Flow

Continue the activating flow.

Play

Inputs:

Name
Type
Description

Enter

Flow

Flow to activate the node.

Animator In

Animator

Reference to an Animator object.

Fixed Time

Boolean [editable]

If true, times are in seconds. If false, times are normalized (fractional) times.

State Name

String [editable]

The name of the state to play.

State Name Hash

Integer [editable]

The hashed name of the state to play.

Layer

Integer [editable]

The layer index. If layer is -1, it plays the first state with the given state name or hash.

Time

Float [editable]

How far into the state the animation should begin to play.

Outputs:

Name
Type
Description

Exit

Flow

Continue the activating flow.

Set Layer Weight

Inputs:

Name
Type
Description

Enter

Flow

Flow to activate the node.

Animator In

Animator

Reference to an Animator object.

Layer Index

Integer [editable]

The layer to apply a weight to.

Weight

Float [editable]

The new layer weight.

Outputs:

Name
Type
Description

Exit

Flow

Continue the activating flow.

Get Animator State Info

Inputs:

Name
Type
Description

Animator In

Animator

Reference to an Animator object.

Layer

Integer [editable]

The layer to retrieve information about.

Outputs:

Name
Type
Description

Length

Float

Current duration of the state.

Loop

Boolean

Is the state looping.

Normalized time

Float

Normalized (fractional) time of the State.

Speed

Float

The playback speed of the animation. 1 is the normal playback speed.

Speed Multiplier

Float

The speed multiplier for this state.

Full Path Hash

String

The full path hash for this state.

Set Speed

Inputs:

Name
Type
Description

Enter

Flow

Flow to activate the node.

Animator In

Animator

Reference to an Animator object.

Speed

Float

The speed to set for the Animator. 1 is normal playback speed.

Outputs:

Name
Type
Description

Exit

Flow

Continue the activating flow.

The layer where the cross-fade occurs. For more information, refer to .

Plays a state. For more information, refer to in the Unity documentation.

Sets the weight of a given layer. For more information, refer to in the Unity documentation.

Retrieves information about a given Animator. For more information, refer to in the Unity documentation.

Sets the playback speed for the Animator. For more information, refer to in the Unity documentation.

Animator.CrossFade
Animator.Play
Animator.SetLayerWeight
AnimatorStateInfo
Animator.speed
Animation Layers