Skip to main content

Animation Components

These components allow you to add features to Animators and Animations in a scene.

In this section, you will learn about the following components:

  • Animate by Distance
  • Animate by Value

Animate by Distance

Animate by Distance

The Animate by Distance component plays the target animation clip based on the distance between two objects.

PropertyFunction
ClipAnimation to be executed
Sampling PointStart Object transform
TargetEnd object transform
RangeIf enabled, the animation range of frames to be executed

Animate by Value

Animate by Value

The Animate by Value component plays the target animation clip in unison with a Behavior progress movement.

PropertyFunction
TargetGameObject to animate
Animation ClipAnimation to be executed
SpeedAnimation play speed
Animate On StartStart the animation when in play mode
Start OnAnimation starting point in percentage. If the Animation Span property is enabled, the starting point depends on the defined span
Animation SpanIf enabled, the animation range of frames to be executed