Quantcast
Channel: Questions in topic: "playerprefs"
Viewing all articles
Browse latest Browse all 1333

Playing animation by String

$
0
0
Hi Guys, I have been trying to play an animation by doing the following: var animname : String; var canPlay : boolean; function Update(){ if(canPlay){ animation.CrossFade(animname); } } I get no errors in the console but at runtime the animation is not played. I change the animname variable to the name of the animation when different things happen. It just won't work. I'd really appreciate it if anyone could help!

Viewing all articles
Browse latest Browse all 1333

Latest Images

Trending Articles



Latest Images

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