I’ve got an FBX of a monster with a bunch of animations. I had edited the controller very mildly, simply adding the animations so I can call them from script, and then adding an event to a bunch of them to call a function in a script. That’s it.
I then edited the FBX, simply adding new animations (I did NOT edit old animations, or change names). I then deleted the FBX in Unity, and dragged in the newly exported FBX (same name as the old one), so that it would be used in the same spots. If there’s a better way to do this, please tell me.
I’ve done it before, and it worked. All I had to do was add the NEW animations within the controller.
My problem is, when I did this (this time), it deleted the events I had created, and remove some connectivity in the controller (the animation reference was removed from the “motion” slot, so I just had to re-add it). Firstly, why is simply updating the FBX deleting my connections, and removing the events? Is there a better way to do this?
Secondly, and this is the real problem. I had created a Unity Version Control (UVC) backup (let’s call it backup A) before I deleted and reimported the FBX, where everything was working fine. I then deleted, imported the new one, and did some edits to make it work. I then created a new back (let’s call it backup B). I then loaded backup A to check something, then reloaded backup B to continue working. However, backup B is missing a bunch of work I did in the controller to get it working. As far as I understand (and I’m a noob), UVC should include all animation controller work. So why did it delete my work? I deliberately created a backup before messing with stuff, then created a backup with all my work I could come back to.
I’m probably just not understanding something properly, because I’m a noob.
If there’s a better way to import an updated FBX, or use UVC, please let me know.
Anyone know why these two problems happened, and how to avoid them in the future?
I apologize for being a noob. I’ve tried to figure this out myself, and haven’t been able to.
Thank you for your help!