Skip to main content

Animation

A selection of scripts to control animator parameters.

Animator Toggle

Toggles a boolean parameter on an Animator component. Can be used by Interacting with it if a Collider is attached or by calling _Toggle() from a UI component or another script.

  • Anim : Animator - The Animator component to control.
  • ParameterName : string - The name of the boolean parameter to toggle.

Synced Animator Toggle

Same as Animator Toggle, but is synced to all players.

  • Anim : Animator - The Animator component to control.
  • ParameterName : string - The name of the boolean parameter to toggle.

Trigger Animator Toggle

Toggles a boolean parameter on an Animator component when a player enters a trigger collider. Can be used by attaching a Collider with "Is Trigger" enabled.

  • Anim : Animator - The Animator component to control.
  • ParameterName : string - The name of the boolean parameter to toggle.
  • WorkForAllPlayers : bool - If enabled, any player entering the trigger will toggle the parameter for all players. If false, only the local player will be detected.

Animator Activator

Toggles a boolean parameter based on the active state of the GameObject it is attached to.

  • Anim : Animator - The Animator component to control.
  • ParameterName : string - The name of the boolean parameter to toggle.

Dinstance Animator Trigger

Controls a float parameter of an animator based on the distance between the local player and a specified point.

  • MinDistance : float - At this distnace or further, the parameter will be set to 0.
  • MaxDistance : float - At this distance or closer, the parameter will be set to 1.
  • TargetAnimator : Animator - The Animator component to control.
  • ParameterName : string - The name of the float parameter to control.
  • TargetTransform : Transform - The point to measure distance from.