Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to use Unity Sprite Packer for Tight & Full Rect sprites at the same time?

Discussion in '2D' started by Peacewise, Sep 22, 2014.

  1. Peacewise

    Peacewise

    Joined:
    Feb 27, 2014
    Posts:
    52
    I'm using Unity's sprite packer, and I need one atlas to use the default packer policy (full rect) and the rest of my atlases to use the tight packer policy. Changing the built in setting appears to apply the setting to all atlases. How can I specify this per atlas?

    Thanks!
    Ray

    PS -- the reason I need one of my atlases to use the default/full rect policy is because NGUI doesn't seem to like Unity sprites that are tightly packed.
     
  2. Peacewise

    Peacewise

    Joined:
    Feb 27, 2014
    Posts:
    52
    Is this possible to do by writing a new packer policy?
     
  3. TamaHobbit

    TamaHobbit

    Joined:
    May 18, 2014
    Posts:
    10
    11 months later, this exact same question is still relevant. I guess it is not possible, but it is rather unclear since it is only through how GUI for the Sprite Packer works that it is evident that all atlases must use the same packing policy.
     
  4. Yukichu

    Yukichu

    Joined:
    Apr 2, 2013
    Posts:
    420
    I would also like to have multiple policies. No updates huh.
     
  5. Drapan

    Drapan

    Joined:
    Apr 9, 2013
    Posts:
    14
    Still no news on this?
     
  6. Leo-Yaik

    Leo-Yaik

    Unity Technologies

    Joined:
    Aug 13, 2014
    Posts:
    434
    Hi

    It is possible to write your own packing policy

    http://docs.unity3d.com/Manual/SpritePacker.html

    However, the limitation still applies that a single policy applies to atlases.

    The work around would be by checking the texture importer's tag during packing and switch to different 'sub policies'.