We found an issue where updating a project from one Unity version to another wiped all Events from animations in imported FBX files. To help recover from this, we’ve been hand-editing the .meta files and copying the missing Event data from the old Unity version to the new Unity version. And for some reason, while the data is correct, Unity flat out does not display it in the editor. But if we add the events again within the editor, they will then persist - and they will look identical in the .meta as the data we copied over. This is rather baffling, as it’s all text, and we’re not sure why Unity won’t just let us copy/paste the data over (especially as hand-making all of the events again is very time consuming).
This feels like a bug or something - could we get some help or advice on understanding why copy/pasting between meta files just invisibly ‘doesn’t exist’, and what the right way to do this might be?
It’s ok to modify .meta directly. Can you specify which version you switched from and to? The local serialization keys need to match exactly between different versions. Unity automatically handles this when switching versions. However, manually copying between different versions might overlook this aspect.
Best I can tell, these are identical. But if I copy/paste the first one over, it doesn’t work. But if I remake it in Unity by hand, it works and looks identical to what gets copy/pasted in.
I tried copying this event of yours into one of my model’s .meta file and found it feasible. Could you try it again? Make sure:
(1) The indentation is consistent and no other lines are modified.
(2) After modifying the text, press Ctrl-S to ensure it has been saved.
(3) Click anywhere in the Unity interface to trigger Reimport:
(4) After importing, check under ModelImporter Inspector → Animation Tab → Events for the Event flag at 0:00, and click to view its corresponding information.
I finally got it to work - you mention of the indentation made me wonder some things. So I tried pasting the data in again, but copy/pasted the initial indent from another part of the file into where the past started, and that did it. Looks like Notepad++ must copy/paste with some odd first character, as clearing that section and pasting the blank space from another part of the file resolved it.