Hey I want to use the 'wait' function so that I can freeze my animation for some interval of time. I want to use this 'wait' function as an Event in my animation but it doesnt work.
function wait () {
yield WaitForSeconds(5.0);
//WaitForSeconds (5);
}
if you want to freeze your animation try this method: 1-split your animation in two (one before where you want to freeze and one after ) 2-call your animations and use wait between them gameObject.animation.Play("first animation"); yield WaitForSeconds (5); gameObject.animation.Play("second animation"); This worked good for me Ps:the animation that i used were imported from maya
Yeah, you'd have to set the speed for the animation state to 0, wait, then set the speed back to whatever it was before (usually 1)
– Statementif you want to freeze your animation try this method: 1-split your animation in two (one before where you want to freeze and one after ) 2-call your animations and use wait between them gameObject.animation.Play("first animation"); yield WaitForSeconds (5); gameObject.animation.Play("second animation"); This worked good for me Ps:the animation that i used were imported from maya
– anon69321326