- Изменено
Runtime Woes
I am not a code wizard, nor am I even a good animator. I've been using Unity for a few weeks and I haven't even finished the Unity3DStudent.com "Beginner" tutorials. I signed up for GitHub in order to download the Spine runtime for Unity and even then I needed help finding the ZIP button.
All that said, I brought Unity and Spine and all of the runtime files with me to Cipher Prime's dev night in Philadelphia, a weekly gathering of local developers, and nobody could figure it out. I even had someone who teaches computer science look at it, albeit not for terribly long, and he was perplexed.
I know several of you out there have gotten it to work and I know the developers are busy getting additional runtimes and features prepared. Please, if anyone has documentation on how to get things running I would be much obliged.
Thanks!
I tried to help over here but didn't hear back. Have you looked at the example project? Here are some notes:
-
There is an atlas asset which has a material and an atlas file. Create a new atlas asset via Assets -> Create -> Spine Atlas.
-
There is a skeleton data asset which has an atlas asset, a skeleton JSON file, and some settings for scale and blending. Create a new skeleton data asset via Assets -> Create -> Spine Skeleton Data.
-
To use a Spine animation in your game, add a Skeleton Component to a game object via Component -> Spine Skeleton. In the Inpsector view, point the Skeleton Component to your skeleton data asset.
-
You can also create a new game object with a Skeleton Component via Game Object -> Create Other -> Spine Skeleton.
You might first try editing the example project to points to your own atlas, material and skeleton JSON. Let me know if you have more specific questions.
FWIW, here's a Unity game using Spine:
http://www.youtube.com/watch?v=TOqGObnxz_k
I guess what I'm getting hung up on is exactly what needs importing and how it needs to be imported. I don't have the Assets -> Create -> Spine [Atlas/Data/Skeleton] options and I feel like I'm missing something super basic for being a Unity noob.
Part of it is that every asset package I use right now is a .UnityPackage and there's nothing that looks like that yet with Spine. I'm finding that I'm getting lost easily with knowing what to import and how to import it in a way that isn't going to crash.
For what it's worth, the example project also crashes. "type == kMetaAssetType && pathName.find ("library/metadata") != 0" Fatal Error message pops up.
Maybe I'm missing something simple? Is the runtime built for the latest version of Unity? I'm using 3.5.7f6 and I guess the latest version is 4.1.2. I haven't downloaded it yet because I picked up iOS and Android licenses last April when they were temporarily free and apparently 4.1.2 breaks that.
afaik you need Unity 4.x - I guess we can look into supporting 3.x no promises though. We'll have a talk about it later today. We'll keep you posted, it would definitely be smart to support 3.x with the deal Unity had going on that version.
I'm made the Unity runtime work for 3.5.7. See instructions here:
https://github.com/EsotericSoftware/spi ... pine-unity
You guys are wizards, thank you so much!
Everything loads up without crashing at this point. The only error I get is "Script 'Animation' has the same name as built-in Unity component. AddComponent and GetComponent will not work with this script." Is there a good way to fix that without breaking everything else that refers to it?
That is just a warning, don't mind it. Since Animation is a class and not a component, it doesn't matter.