Blog 1 :- Skeleton animation in Unity
Hey Guys, this blog is part of a series "Skeleton Animation in Unity" . In this i'll try to explain "how to instantiate spine objects in Unity".
For this make sure you have "spine-unity.unitypackage" plugin in your projects
Step1: We'll have three files of a spine/skeleton object from designer end.
i.e. i) Atlas file
ii.) json file
iii.) png file
Make a common folder for these files, and open them in explorer same as spine character name. Now, Rename Atlas file as fileName.atlas.txt
After this you'll get 2more files generated automatically, as
i) fileName_Atlas.atlas
ii) fileName_Material.mat
Step 2: Right Click on Project region -> Create ->SpineSkeletonData
Select this new SpineSkeletonData . Now in, Inspector Region set Atlas Assets :
Size = 1
pass "fileName_Atlas.atlas" in Element 0 and
"fileName.json" in SkeletonJSON.
Step 3:
Right click at this NewSkeletonData-> Spine -> Instantiate(Skeleton Animation).
Now you spine object will be Instantiated into your Game Seen.
1 Comment(s)