• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by dbugger · Oct 14, 2015 at 11:50 AM · asset storepivot-point

Texturepacker: Pivot point in weird positions

When my designer sends me the spritesheets done with Texturepacker and I open them with the Sprite editor, i notice that the pivot point is in extremely weird positions. Way above the spritebox that it is attached to.

I told him to put the pivot point "Bottom center" instead "center", and the pivot moved to positions not so exagerated, but still outside the spritebox.

I thought that someone (my designer or me) had something misconfigured, but then I opened the example spritesheet that came with Texturepacker, and I noticed that the pivot point was also in weird positions

alt text

As you see the pivot point is under the spritebox. And as I say, this is because the pivot point is set to "Bottom center". If I set it to "Center", it goes even weirder positions.

What is going on? Is something misconfigured here?

screenshot-1.png (219.4 kB)
Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Pat27 · Mar 11, 2016 at 02:50 PM 0
Share

It is a bug, devs should fix it soon. I am gonna stick to previous version.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by CodeAndWeb · Oct 15, 2015 at 06:09 PM

This is as it should be - no bug ;-)

TexturePacker has 2 crop modes in Unity - to remove transparency around the sprites which consumes memory and GPU.

Trim Keep Pos - removes the transparency but keeps the pivot point in the position where it was in the original sprite Trim Flush Pos - removes the transparency and sets the pivot point relative to the cropped sprite The default is "Trim Keep Pos" since this allows you playing the animations without jitter if all frames had the same size and were aligned before the crop. In Unity's sprite editor it seems that the pivot point is off - but that's perfectly ok.

See this image:

alt text

The gray area is the original sprite, the black rectangle the trimmed. As you see the red pivot point is outside the rectangle - but in the center of the original sprite.


copping.png (24.7 kB)
Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image rioneye · Mar 08, 2016 at 10:30 PM 0
Share

I have a similar issue and as a result all of our sprites are shifted in game. I feel like there should be an option to use the pivot point from Crop flush position, but the remaining settings from Crop keep position.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can i provide a google blogspot link as a publisher page in where i made a portfolio for my product 0 Answers

Can I include Unity Technologies assets in a demo-scene of my commercial asset? 1 Answer

A good terrain engine for Unity ? 1 Answer

Do I need to include Undo/redo for my asset which create .asset object in the project? 0 Answers

Field to communication , when trying uploading new plugin 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges