In my game project, I have a TextMesh Pro Sprite Asset file that stores controller prompt icons. Every time I open the Unity Editor and run the game, it seems like the file corrupts, with the names of sprites getting mixed up with each other (and in some cases, names disappearing entirely). To fix it, I simply have to open the Sprite Asset and click “Update Sprite Asset” in the Inspector window, and then everything shows up fine… until I close and open the project again, at which point this whole process repeats.
One of my labels after opening the project:
Immediately after clicking “Update Sprite Asset” in the Inspector, it’s fixed:
…but again, this only persists until I close the project.
Is this a known issue, and/or is there a solution to this problem? It’s been really frustrating having to do this every time, so it’d be great if there was a way to stop it.
Thank you for the response! I just sent a zipped file with the sprite asset and texture/sprite data.
Interestingly, as I was preparing it, I noted that while I have several icons with “mouse” in the name, which appear in the Inspector after I click Update Sprite Asset…
…the asset file itself never seems to be updated - there are no instances of those icons in the file itself.
Perhaps Unity is updating its internal representation of the sprite asset data correctly, but just never saving it to the serialized file for some reason?
Is there an update on this bug? I just upgraded my project to TextMeshPro 3.0.6 and am still experiencing this issue.
Edit: It seems I was able to fix this bug by exporting a fresh copy of the spritesheet and creating a fresh Sprite Asset from that - the issue was continuing to persist with the old Sprite Asset, so maybe it had something to do with the old spritesheet it was using?