dharengo / spriter2unitydx Goto Github PK
View Code? Open in Web Editor NEWConverts Spriter .scml files to Unity prefabs
Converts Spriter .scml files to Unity prefabs
Hey
If I send over my spriter file to you would it be possible for you to fix an issue with the plugin where it puts sprites into the wrong z-order?
So I have head image behind the body image though in spriter it is all fine once imported the order somehow gets wrong.
You may not know it, but when you have two sprites in two different depth, in 2d mode, it would rise the draw call because when the game is being built, the built in atlas generator won't be able to figure it out and put those textures into one atlas.
these days, unity is giving an option to sort sprites inside a single layer by the sort order so.....
in your prefabBuilder.cs, line 140 :
child.localPosition = new Vector3 (spriteInfo.x, spriteInfo.y, oref.z_index); //Z-index helps determine draw order
change it to ==>
child.localPosition = new Vector3 (spriteInfo.x, spriteInfo.y, 0);
and right bellow it, add this line :
renderer.sortingOrder = Mathf.Abs ((int) (oref.z_index * 1000)); //Z-index helps determine draw order
this way, your z_index will be converted to integers and set into the sorting order on sprite renderer and every thing would show properly although the whole sprites are on z = 0 !!!!
Hello,
I tried to import a simple character spriter project with one animation in it into Unity 5.2.2f1. However the asset import is looping forever and I have to forceably close Unity to be able to use it again. After a restart there's no Animator created.
I'm using Spriter Pro 4.1 for editing.
Are there plans to add support for Event Triggers? Or would a pull request adding support for them be considered to include in a future release?
I've tested with Unity 5.3.5 and Unity 5.5
The 5.3.5 give prefab as usual but the other is not, is that possible to make another version to support latest version of Unity ?
I was wondering if you could give any feedback to my situation. Here is my post on the spriter forum. I was directed to ask this community;
Okay I have some problems with getting my animations to load correctly in Unity. And I'm actually working with someone across the world so we are trying to figure out the problem through screenshots and we can't seem to figure it out. I'm not really that familiar with Unity (he is). Here is the basic outline of the problem, I will attach screenshots. First set we uploaded in, I did not create points on the animation, causing errors. Second set I created a point and copied it across all frames. Causing tons of overlapping of sprites. Then I tried creating one point only on the first frame of animation (for each direction) and the character repeatedly spins in a circle between the four points. Then I tried creating a point for each frame of each animation (not copying). That's also does not work for me. The closest we have gotten is it will play an animation but skip the last frame I believe. He's the one doing the Unity importing and he knows nothing about spriter and I know little about Unity. Any help would be appreciated.
[url=https://postimg.org/image/mavb3xckj/][img]https://s13.postimg.org/mavb3xckj/IMG_0318.png[/img][/url]
[url=https://postimg.org/image/ke36d3bab/][img]https://s13.postimg.org/ke36d3bab/IMG_0319.png[/img][/url]
[url=https://postimg.org/image/ntvamn8ir/][img]https://s13.postimg.org/ntvamn8ir/IMG_0320.png[/img][/url]
[url=https://postimg.org/image/juy33tjvn/][img]https://s13.postimg.org/juy33tjvn/IMG_0321.png[/img][/url]
[url=https://postimg.org/image/l1232m86b/][img]https://s13.postimg.org/l1232m86b/IMG_0322.png[/img][/url]
[url=https://postimg.org/image/olxylucpv/][img]https://s13.postimg.org/olxylucpv/IMG_0323.png[/img][/url]
[url=https://postimg.org/image/7hl8wwu77/][img]https://s13.postimg.org/7hl8wwu77/IMG_0324.png[/img][/url]
Hy, so far you made great work with your plugin and you make the work with unity and spriter much easier but the problem is if you scale a bone or sprite inside spriter2d the animation get messed up.
It would be realy great if you could fix this.
Thank you!
Loading Spriter2UnityDX in Unity 5.4.1f1 throws this error message when selecting & de-selecting the Settings.asset:
Destroying assets is not permitted to avoid data loss.
If you really want to remove an asset use DestroyImmediate (theObject, true);
UnityEngine.Object:DestroyImmediate(Object)
Spriter2UnityDX.SettingsEditor:OnDisable() (at Assets/Spriter2UnityDX/Editor/S2USettings.cs:32)
I'm trying to get animations made in Spriter to export / import into a separate folder in Unity (so I can modify animation events and blending in Mecanim) I feel like I did this once, but cannot find a way to do it again - it is a setting in the export? Import? Thanks for your help!
No message in the console log so I don't know what's wrong.
My spriter project: spriter.zip
Link to the Linux build: http://forum.unity3d.com/threads/unity-on-linux-release-notes-and-known-issues.350256/
Hi
I am having an issue with body parts not aligning in Unity like they do in Spriter and I am sure it is due to the pivot points. I have seen your information regarding pivot points that are set on the canvas causing issues so I have set my pivot points at the image.
The issue specifically is with eyes for example (these are seperate art pieces to the character head), all animations work great in Spriter, yet when imported into Unity, the eyes are floating off the face and if I move the pivot point in Spriter, there doesn't seem to be any logic to where Spriter2UnityDX will place the parts.
Can you provide any advice or is this likely a bug?
Assets/Spriter2UnityDX/Editor/PrefabBuilder.cs(174,15): warning CS0618: UnityEditor.TextureImporterSettings.ApplyTextureType(UnityEditor.TextureImporterType, bool)' is obsolete:
ApplyTextureType(TextureImporterType, bool) is deprecated, use ApplyTextureType(TextureImporterType)'
This tool is no longer works, I would be very happy if somone can give me the latest update.
When importing animations that swaps some sprites to another (like different head swap) it isn't imported into unity and the animation uses only the original sprite.
This tool works very perfectly with material 2d but i can't create material property block with entity renderer like normal renderer like sprite renderer. Do you have any idea to set material property block
for the material in entity renderer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.