Code Monkey home page Code Monkey logo

spriter2unitydx's People

Contributors

dharengo avatar mazku avatar rfadeev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spriter2unitydx's Issues

Z-Order Issue

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.

Animations Import Funky

The spriter package imports my newest and edited animations complete wrong
but older un edited ones are totally fine

import problems 2

import problems

import problems 0

import problems 1

Using Z dept in Unity 2D is a bad practice

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 !!!!

Import fails using Unity 5.2.2f1

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.

Dialog "Import Options" is very confusing

A description of what the input field does would be nice. Also "Done" seems somewhat out of place here.
What is the purpose of this dialog? I'd be happy to provide a PR with some amendments.

001_selection

Support for Event Triggers

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?

Not Compatible with unity 5.4 or upper

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 ?

Overlapping sprites

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]

Many bugs when imported to Unity

Hi guys,

I am trying to import an animation to Unity, and in the 80% of the cases, it's fail.
Why this happen?

Here is an animation on the Spriter Pro, and the same in the Unity, after the import:
out-17-2016 13-28-31

In Unity:
out-17-2016 13-28-15

Is not only this animation that the problem occurred.

Can you help me?

Error: Destroying assets is not permitted to avoid data loss

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)

Trying to export Spriter animations to a separate folder?

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!

Issue with pivot points

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?

unity 2018

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)'

Need update

This tool is no longer works, I would be very happy if somone can give me the latest update.

Unity 2018

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.

Material property block

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.