- Home /
Character models disappear when project is built (SOLVED)
I'm currently developing a fighting game, once I was ready to test the newest build I noticed a bug that wasn't present when I was testing in the unity editor. During the scene in which 2 characters are fighting, everything works fine. But once either character goes into their Hit or Knockdown animations they disappear and don't re-appear at all. They are still there, I can still interact with them and even have them continue to fight, they just don't show up visually. No other animations trigger this; the idle, punch, kick and block animations all work perfectly. I have no idea what to do, especially since this doesn't happen in the editor, only when i build the project. Any help would be appreciated! Thanks!
Answer by Armour46 · May 31, 2018 at 09:33 PM
Problem Solved: There was something wrong with the way I was handling knock back. At some point in my knock-back calculation this would happen transform.position += new Vector3( null, 0 0) because I calculate the amount of knockback based on what the hitstun timer is at and for it's first run of those lines, it is dividing by zero. Although I'm still not sure why this didn't come up in the unity editor.
Your answer
Follow this Question
Related Questions
First script plays animation but second script stops if from playing said animation 1 Answer
Animation not importing correctly? 1 Answer
Distribute terrain in zones 3 Answers
Geometry Problems in Unity game build 0 Answers
Unity 4.5.2 bug changing the properties of the 2d colliders in animation 1 Answer