- Home /
Animation State Machine Script Control Issue
Hello guys. I'm currently facing a problem with the state machine.There are several targets (It is a shooter) and they all contain animation clips which are controlled by animator state machine which is receiving commands from the scripts attached to them.This whole mess is working when i press play. However when i have divided them into groups(arrays) and started activating them group by group last group fails to switch their states except one target. I've been looking over and over again for any differences between them but so far i've failed to find any. If you guys have any clues please help. If there is something that i didn't cover in my description ask me in the comments. Using Unity 5.4.1
It would be nice to post a screenshot of the actual state machine and the script(most important) you wrote
Answer by Reaper93 · Nov 21, 2016 at 01:00 PM
I've found what the problem most probably was. The script was activating group like a lot in the Update. So i made shure that it is being set to active only once. And it worked! Animator is not confused anymore! I had to rewrite whole damn thing tho...
Came the very next day.Same problem goddamnit ! Removed the script. Attached back. Works! IS it a bug in Unity or something?
Your answer
Follow this Question
Related Questions
How to make Animation and Physics work together? 0 Answers
Animation not working correctly 0 Answers