- Home /
 
 
               Question by 
               shadiradio · Feb 13, 2015 at 07:17 AM · 
                spriteatlas  
              
 
              Does the DefaultPackerPolicy ignore the [TIGHT] prefix?
From the manual:
"DefaultPackerPolicy will use rectangle packing by default unless “[TIGHT]” is specified in the Packing Tag (i.e. setting your packing tag to “[TIGHT]Character” will allow tight packing)."
However in the DefaultPackerPolicy script it seems that a sprite that is assigned FullRect will never pass this code check, even if "[TIGHT]" prefix is added to the packing tag:
 private SpritePackingMode GetPackingMode(string packingTag, SpriteMeshType meshType)
     {
         if (meshType == SpriteMeshType.Tight)
             if (IsTagPrefixed(packingTag) == AllowTightWhenTagged)
                 return SpritePackingMode.Tight;
         return SpritePackingMode.Rectangle;
     }
 
              
               Comment
              
 
               
              Your answer