Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Size works wrong with Use Texture Offset (and scale probably) #32

Closed
jwu opened this issue Apr 26, 2012 · 2 comments
Closed

Custom Size works wrong with Use Texture Offset (and scale probably) #32

jwu opened this issue Apr 26, 2012 · 2 comments

Comments

@jwu
Copy link
Contributor

jwu commented Apr 26, 2012

http://forum.unity3d.com/threads/101811-ex2D-the-best-2D-sprite-solution-for-Unity-RELEASED?p=903568&viewfull=1#post903568

I encountered a strange bug(?) when using "Custom Size" together with "Use Texture Offset".
Got an animation with 3 frames (each 192x180 pixels) running perfectly in the animation editor. The frames get trimmed in the atlas editor but since I got "Use Texture Offset" they get aligned correctly.

The problem is that I use "Custom Size" with width and heigh at "1" for all my sprites so that unity's physics behaves normally and sprites don't get huge. This way their size at scale (1,1,1) is that of a regular unity primitive. I don't like to adjust the scale of my sprites to strange values like 0.00000123 since that seems to mess up physics.

Now when I try that animation ingame the sprite jumps left and right. If I disable "Use Texture Offset" the jumping is gone, but now, since they were trimmed down in the atlas editor the frames alignment is wrong.

Is there anything I can do to fix this?

@kyuuzou
Copy link

kyuuzou commented Nov 15, 2012

I have the exact same issue, did you ever manage to figure this out?

@jwu
Copy link
Contributor Author

jwu commented Aug 7, 2013

Fixed in ex2D v2.0

@jwu jwu closed this as completed Aug 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants