Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

animation.isPlaying is not working

$
0
0
This is my code for my script var check = false; function Update () { if(animation.isPlaying){ check = false; } if(!animation.isPlaying){ check = true; } } I am using a simple technique to check if unity recognises what I want it to but it doesn't, the check box in the inspector when unity is running stays unchecked, could someone help, all I am currently stuck on is unity not recognising that there isn't any animations playing, yet it doesn't. I even tried to make both of them make the check variable true but it still doesn't work

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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