Quantcast
Channel: Questions in topic: "entry"
Viewing all articles
Browse latest Browse all 31

Problem with Entry state

$
0
0
I'm following this tutorial: https://www.youtube.com/watch?v=YbwlUvnpulE The guy in the video doesn't have an entry state and it's impossible to remove the entry state. I've written the following code as per the tutorial to set which state to start: void Update () { setAnimation (4); } void setAnimation(int animationNumber) { if (animationNumber == anim.GetInteger("animation") || -animationNumber == anim.GetInteger("animation")) { anim.SetInteger ("animation", -animationNumber); } else { anim.SetInteger ("animation", animationNumber); } } So it should be beginning with the fourth state but instead it begins with the default state I've set the entry state as and there is no way to remove it, so I'm not sure what to do. This is what it looks like in the base layer: ![alt text][1] [1]: /storage/temp/53126-states-unity.png

Viewing all articles
Browse latest Browse all 31

Trending Articles



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