Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity pause animator

float prevSpeed;

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

// Continue
animator.speed = prevSpeed;
Source by www.reddit.com #
 
PREVIOUS NEXT
Tagged: #unity #pause #animator
ADD COMMENT
Topic
Name
2+4 =