Fun with updating Unity.

So this blog post was supposed to be showing a few of the game projects I still have lying around that need finishing (And they will be finished). However, it turned into a nightmare. Why? you might be asking. Because I decided it would be a good idea to upgrade them to the new version of Unity.  

This resulted in some of my blender models not loading, all the colliders on those that did work were missing, a bunch of weird scripting errors, and my prefabs were messed up. 

So I am going to explain how I fixed these so you won’t have to smash your face into the keyboard like I did. 

Blender models 

Well for the blender models, I just reinstalled blender, restarted the project and reimported all the assets. YAY this worked. But (and there is nearly always a BUT) all the animations were missing. This was in-fact misleading. All they needed was them to be repointed at Armature (blenders bone setup for animations).  

After this point re-setup the source animations so that they are pointing at “Armature|anim name”. 

Because the names might have changed you will need to go into your animation controllers and select the correct animation for each action.  

Finally to fix the collision issue, go to your mesh click on model then click generate colliders.  

Prefabs 

So when I first started this project, Unity still had the old prefab system. So when I updated the project, my player prefab looked like this.

All sorts of screwed up there, to correct it I just recreated the prefab where the root node was an empty game object, the sled and then monster was added as children to this. So it now looks likes this. 

I did have to repoint some of the objects in the gameplay scripts to the new player prefab.  For the most part it now works. Not sure what else is broke though it needs a bit more testing and more work before its ready for the public, but will update soon with how that all goes.

Leave a comment

Your email address will not be published. Required fields are marked *