Search Unity

Custom pivot in sprite sheet

Discussion in '2D' started by Mish, Oct 27, 2014.

  1. Mish

    Mish

    Joined:
    Apr 23, 2010
    Posts:
    96
    I have tried using Texture Packer and their Unity export format. Everything works except I can only set the pivot point to some fixed values (top, center etc) if I try to change to pivot point in Unity the settings get overwritten by the Texture Packer file (.tpsheet).

    Does anyone know of a way to be able to set a custom pivot point on some frames or perhaps a different sprite sheet tool which allows this?
     
  2. TomasJ

    TomasJ

    Joined:
    Sep 26, 2010
    Posts:
    256
    If TexturePacker integration doesn't support arbitrary pivots, then you should ask the developer to implement that :)

    Unity had support for this but TexturePacker's scripts will overwrite you changes upon import. Try editing the generated meta file and changing pivot values in there(juck).
     
  3. pixelmagetoby

    pixelmagetoby

    Joined:
    Oct 15, 2015
    Posts:
    1
    If you delete the .tpsheet file you can change your pivots, of course this will be stepped on if you re-export your texture packer file, but if you are not making many changes to your art it will already be imported. We created a custom unity command to set our pivots and delete the .tpsheet files.
     
  4. CodeAndWeb

    CodeAndWeb

    Joined:
    Jul 31, 2014
    Posts:
    37
    You can simply disable overwriting pivots in the Unity's preferences. Just untick the "Always import pivot points".

    Unity_Preferences_und_Untitled_-_TP_Unity_Test_-_iPhone__iPod_Touch_and_iPad__Personal_.png

    We've already planned to add a full pivot point editor with one of the next versions.
     
  5. francoiscoiscois

    francoiscoiscois

    Joined:
    Oct 23, 2019
    Posts:
    34
    I know it is an old post. But I have the same problem and don't see the texturePacker appear in my unity Preferences. How can I access this option? thank you!
     
  6. Dreoh

    Dreoh

    Joined:
    Aug 15, 2012
    Posts:
    11
    I also need to know where to find this option
     
  7. CodeAndWeb

    CodeAndWeb

    Joined:
    Jul 31, 2014
    Posts:
    37
    We've changed this quite some time ago. The current TexturePacker and Importer plugin use the settings from TexturePacker's Sprite settings tab.

    2020-02-14_08-29-41.png
     
unityunity