Insight in the demo

Insight in the demo

The demo uses a few scripts to showcase the boar animations.

  • AnimationShowcase: Is used to animate all the boars at the same time.
  • RotationSlider: Is used to rotate the boars to better admire the animations.
  • BoarAnimations: Is used to specify the objects and effects affected by the animations.

Some animations use visual effects. These are activated via scripts using:

visualEffectGameObject.SetActive(true)

For the ‘Sleep’ and ‘Run’ animations the effects are activated at the start of the animation.

The ‘Death’ animation on the other hand uses animation events to activate the effects and the model swap at the perfect time.

Learn more about animation events here