Answers for "unity pause animator"

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

Code answers related to "unity pause animator"

C# Answers by Framework

Browse Popular Code Answers by Language