Hello and thank you for the great Spine runtime!
I have been going through the DataAssetsFromExportsExample found in your Unity SDK.
We want to be able to update Spine animations from a web server, without requiring a new client build. Is there a recommended way to download Atlas text files and Skeleton JSONs from the web? Right now Spine wants TextAssets that contain the string or byte[] needed to build the Spine animation in Unity. Unfortunately, we cannot make a TextAsset at runtime.
I'm looking at methods AtlasAsset.CreateRuntimeInstance and SkeletonDataAsset.CreateRuntimeInstance specifically.
For now, I am editing code so that methods requiring a TextAsset can take a string or byte[] instead of a TextAsset. If this seems useful to you, I can make a pull request for you.
The other alternative is using Unity Asset Bundles to package up the TextAsset, then unpack it at runtime once the bundle has been downloaded. I am hoping not to require building and uploading asset bundles to our workflow!
Do you have a recommended way to download Spine animations from the web?
Thanks again for all the great work.
14 Sep 2017, 22:13
I have this working now. The spine code was clean so it wasn't too hard to go through. I'll see if I can get a fork posted on github soon.
Thanks again for Spine!