Hello!
We have a 2D sprite of a pet fox in our game, that is animated by using Unity’s 2D Animation package. Its tail is animated with inverse kinematics chain.
We had no problems with this on Unity 2021. We have just upgraded Unity to 2022.3.9f1 now and all packages. The animations work as intended in Editor without issues, but once built and installed on Android, inverse kinematics stop working and throw some warnings and errors (see pictures). We spent past almost two weeks trying to solve this issue in different ways, but nothing has worked.
Two times we somehow managed to do something, that ended with “no errors” “working tail” build, but after trying to replicate it on other computer, the same steps as before, the resulting build had errors again (one time we just removed and re-added both 2D Animation and PSD Importer packages, the other time we downgraded 2D Animation package and removed and re-added inverse kinematics components on prefab objects).
I suspected the problems had something to do with cache, but clearing both project’s and Unity’s cache didn’t help. Other team member thought there was some issue with package’s scripts and #if UNITY_EDITOR conditions, that made it work properly in Editor but not in build, but we had no idea what and how could we solve that.
Maybe it is relevant to say, that after upgrading Unity and Unity’s Collections package, we got many (200+) errors about collections cache and had to clear Library folder for regeneration to fix this (each team member had to do this). 2D Animation is using Collections package, so I wanted to mention this occurrence.
Can someone please help or suggest some more steps we could try to solve this?