• Unity
  • Using Spine with Addressable

Hello all,

I am using Spine with Addressable and URP. I have made a prefab (combination of sprite renderer and spine animation) to be place within a scene. I have tested with Unity Editor and it works fine.

But when I deploy it on Android, the spine game object is not appearing at all. Can we use Spine with addressable or not?

Secondly, is it possible to load skeletonData.asset from addressable group and create animation object during runtime?

Thanks in advance ...

Derek

Related Discussions
...

It should behave similarly to when you are building asset bundles:
If it does not work, most likely the problem is that not all required assets of your Spine skeleton are available when loading the skeleton. Are you sure that e.g. the .atlas.txt and .json files are included in your addressable group (or the build itself)?

After experimenting a little, I found out that after object being Instantiated by using addressable. The SkeletonData field become null. It seems to be the prefab lost its reference to the asset. And yes, I am sure they are in built into the group. Any solution to fix that?


I have found my own answer, it is because I am using Obfuscator which change the name field or property of the script. I have disable that and now it is working fine. Sorry about this.

No problem at all, very glad you've figured it out. Thanks for letting us know.