Quantcast
Channel: Questions in topic: "crash"
Viewing all articles
Browse latest Browse all 2383

Why does Unity crash ?

$
0
0
when animation start Unity freeze. Also whenever I use while loop Unity freeze. This is my code void Update() { while(AnimationIsPlaying("myAnimation")) { Debug.Log("Animation Is Playing") } } bool AnimationIsPlaying(string stateName) { return (myAnimator.GetCurrentAnimatorStateInfo(0).IsName(stateName) && myAnimator.GetCurrentAnimatorStateInfo(0).normalizedTime < 1.0f); }

Viewing all articles
Browse latest Browse all 2383

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>