Answers for "animation . pause 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