Author Topic: Problems with atlas maker, texture packer and questions  (Read 2128 times)

konsnos

  • Newbie
  • *
  • Thank You
  • -Given: 8
  • -Receive: 0
  • Posts: 26
    • View Profile
Problems with atlas maker, texture packer and questions
« on: May 07, 2014, 04:25:08 AM »
Hello all,

I'm trying to create an atlas with my textures and I'm having a series of problems.

  • I can't seem to use Texture Packer to create my texture atlas. I'm creating in the same folder the atlas with export setting as "UNITY - JSON data (.txt)"
    Then I'm creating a game object and add it the script UIAtlas. I create a new material and assign it to the Material reference in the script. then in the TP Import I'm trying to assign the generated txt, and when I do that I get the extra options of Modify, although the reference remains empty and no texture atlas is generated.
  • When I create an atlas with atlas maker (with Unity Packer) it affects the import settings of the affected textures and I have to reset them all. In particular I set the Alpha Is Transparent and it gets deactivated. Though, the result in the new prefab shows up correct when I select the textures.
  • I set up the button and the resulted button is a little "cut" in the left for no reason. The sample sprite in the inspector inside the Atlas shows up correct. Have I done something wrong here?

Thanks for the help :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problems with atlas maker, texture packer and questions
« Reply #1 on: May 08, 2014, 03:01:41 AM »
The Atlas Maker tool changes the import settings of all the source textures so that it can import them at their native resolution. This is intentional and has to be this way. NGUI doesn't keep any references to the source textures after the atlas has been created, so changing their import settings back has no meaning whatsoever.

Select your round button in the atlas and examine it in the inspector. If anything, give it a 1 pixel transparent border by using the modifier button.