![unity spine2d unity spine2d](http://kiteshop24.ru/asset/Facebook.png)
And "Max texture size" sets the texture quality in Unity, the maximum value is also recommended. "Max atlas size" exists only for debugging, the maximum value is always needed there. The "Padding" field defines the gap between textures in the atlas, with a value of 1, no artifacts appeared. the one at which the "Atlas size" value is less. In the "Pack method" field, select the most optimal option, i.e. As a result, we see the generated atlas and a couple of settings, as in the picture below. Unzip it and drag the resulting folder into the large "> Drag the folder export character here. Now we need the file “necr_2.zip”, it contains the animation export from the Spine project. To open the import window in our Unity project, you need to find the "Window" item in the top menu and select "Spine Import Window" from the drop-down list, as shown in the figure below.Īs a result, we will see a similar window: In this scene, an animated ghost flies in front of the camera with an effect attached to one of the bones of the arms, if you can call it that.
![unity spine2d unity spine2d](https://forum.unity.com/proxy.php?image=http%3A%2F%2Fkiteshop24.ru%2Fasset%2Fcharacter-soldier-poze.jpg)
In the resulting project, you can open and run a ready-made scene, it is located in the "ExampleEffects" folder. Now we create a new 2D project in Unity, import the “2D Toolkit” package and the contents of the “spine_test.unitypackage” file, which can also be downloaded at the end of this article.
![unity spine2d unity spine2d](https://i.ytimg.com/vi/JqoUtVun_s4/maxresdefault.jpg)
![unity spine2d unity spine2d](https://connect-prd-cdn.unity.com/20190308/p/images/86b48dfd-2493-449e-8347-e35ed3939bd3_Dwarf.png)
If for some reason it is not desirable to transfer the animation source together with the folder, then this is not important, the “*. The finished export folder with the source is in the "necr_2.zip" archive, which can be found at the end of this article.
#Unity spine2d plus
Next, as the path, specify “/Export”, and press the export button.Īs a result, we have a Spine project folder with what was already there, plus the required JSON file. It is important not to forget to indicate here that we do NOT need an atlas when exporting (the “Create atlas” field). The export settings are shown in the figure below. In addition to this, we also need a JSON file generated by the editor during export. The process of creating animation itself will not be described here, the developer's site has excellent documentation on this.Įach Spine project is actually a folder with used images and a file with project settings (*. Therefore, a window for import was written, into which it is enough to drag the animation export folder from the Spine editor and click "OK". Importing animation from the Spine editor, manually, is described in a simple video instruction, but in the case when several people are working on a project, this can cause some difficulties. Csharp library that can be downloaded here (but it is already available in the attached project).2D Toolkit (v 2.4.0 at the time of this writing).
#Unity spine2d free
Free version of Unity editor (v 4.5.3f3 at the time of this writing).So, what is needed to implement our plans: Īt the end of the article, a ready-made animation and a test project are attached, the result of which will look something like this: Let's take an example of the particle system available in the Unity editor. It will describe how you can simplify the import of Spine animation into a Unity project, and what you need to do to bind an arbitrary object (visual effect, collider, etc.) to the animation itself or its individual bones.