Answers for "how to make an animation pause in unity"

C#
2

unity pause animator

float prevSpeed;

// Pause
var animator = GetComponent<Animator>();
prevSpeed = animator.speed;
animator.speed = 0;

// Continue
animator.speed = prevSpeed;
Posted by: Guest on December-28-2020

C# Answers by Framework

Browse Popular Code Answers by Language