- Змінено
Issue generating Prefabs
I'm currently evaluating Spine to use in our 2D game pipeline with Unity (5).
However I can't generate prefabs within Unity from any of the example files that came with the free version of Spine.
I've follow these videos to a 't' but nothig worked:
Right clicking JASON file under Spine menu has two options "Instantiate (SkeletonAnimation)' which is alwasy greyed out and 'Instantiate (Mecanim)' which generates 'InvalidCastException' error.
All examples that were bundeled with spine-runtime work ok since they have pregenerated prefabs, but even those files when imported to Unity as per above videos will not generate a prefab.
Spine looks like a fantastic software, this is the only thing that's holding me back from the purchase.
Prefabs are not automatically generated anymore because it caused all sorts of linking problems.
Right click on a SkeletonDataAsset (the ones with the orange Spine icons) and choose Spine/Instantiate (SkeletonAnimation). You can make a prefab out of one of the resulting GameObject.
Thanks for a prompt response Mitch.
Unfortunately 'Spine/Instantiate (SkeletonAnimation)' was constantly greyed out. I said was because I've just upgraded to Unity to 5.1 and now 'spine' doesn't even show up under the right click menu. I've re-installed latest runtime after an upgrade as well. Also none of the examples can be viewed in the scene (after drag/dropping a prefab onto scene window). I've attached a screen grab to illustrate batter. Should I ditch 5.1? Version 4 appears to have the exact problems.
Does Spine work only with Unity Pro?
Apologies for all the newb q's.
Fix the compiler error first by changing the offending line to UNITY_5
I've updated the spine-unity package so if you haven't applied the above patch yet, just re-download the unity package.
Thanks so much Mitch, we got it to work.
I guess it would be a good idea to update the FAQ and tuts section to reflect the new workflow.
Not sure if it was motioned anywhere in the Forum but we also had to add '.txt. to '.atlas' file before import to Unity, otherwise 'SkeletonData' file won't get generated.
yep. gettin there heh. I don't get paid for this
You certainly should :rock: Thanks heaps again Mitch!