Record Spine Skeleton Animation import Unity Step [Unity3d 4.6.6 version 2d animation]

Source: Internet
Author: User

1: Get ready for unity to use the spine required by the runtime, to the following address https://github.com/EsotericSoftware/spine-runtimes/tree/master/spine-unity

Use git to download, or download the Master.zip file directly.

2: Ready to spine export good animation files, just recently occasionally play a game, inside the use of spine made skeleton animation, I will directly use it to do the resources to record the steps, only for the use of notes.

Here's my animated file resource:

There is a need to do a preparatory work in advance to name the Enemy_hunter.atlas file in Enemy_hunter.atlas.txt because Unity does not recognize the. atlas file, which cannot be imported later.

3: Now ready to work OK, we can create a unity project.

A: Copy the Spine-runtimes-master\spine-unity\assets\spine-unity folder in the Master.zip file into the Assets folder of the project

B: Copy all contents of the Spine-runtimes-master\spine-csharp\src folder in the Master.zip file into the Assets\spine-csharp folder of the project

4: Import Resources

A: Here I right-click on the resources panel to create a new folder to hold the imported resources, the recommended import order is ". png" ". JSON" ". Atlas.txt", so that when the ". Atlas.txt" file is last imported, it is automatically generated Enemy_hunter_ Material.mat files and enemy_hunter_atlas.asset files.

B: Right-click New "Spine skeletondata" type file, named "Enemy_hunter_skeletondata.asset", here combined with online information, feel the previous version, should be automatically generated, Do not know why this need to manually build this file, the previous version has not been used, pure speculation. After the file is new, you need to configure the Skeleton JSON property, specify the "Enemy_hunter.json" file, and then click "Attempt Reimport" button. When finished:

So far, the import of skeletal animation has been completed.

5. Now let's add this skeletal animation to the scene to see the effect.

New Spine Skeletonanimation object, Skeleton Data Asset property specified as "Enemy_hunter_skeletondata.asset" File. Then advanced in the animation attribute select an action, loop property on the hook, you can loop playback.

:

   

   

6: You can now play the viewing effect on the game panel. This spine skeleton animation into unity is complete!

Record Spine Skeleton Animation import Unity Step [Unity3d 4.6.6 version 2d animation]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.