- Home /
Question by
freakprince · Mar 22, 2013 at 11:30 PM ·
animationmecanimfloatparametersidle
Random float parameter for idle animations
Hello everyone, im trying to make my character play randomly different idle animations...how do i do that exactly? so far i made a new blend tree added the animations and i created a random float parameter but i dont know what to do next! please help
Comment
Answer by rakkarage · Oct 03, 2014 at 05:13 PM
private Animator _a;
...
_a = GetComponent<Animator>();
...
_a.SetFloat("Random", UnityEngine.Random.value);