Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Unity 2018.3 is now released.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

looking for .TXT file that is supposed to be exported from Texture Packer for atlas use in NGUI

Discussion in 'Unity UI & TextMesh Pro' started by scmcpherson, Dec 6, 2018.

  1. scmcpherson


    Dec 6, 2018
    So I am unfortunately stuck with NGUI for this project but I would like to use Texture Packer to create Texture2D sprite atlases to use instead of the Unity Atlas maker for... obvious optimization reasons.

    Apparently according to some documentation I've been following, NGUI can use Texture2D atlases exported from Texture Packer but it requires a reference in the NGUI UIatlas component to a .txt file that includes the data of the atlas. According to the documentation, a .txt file is supposed to be exported from texture packer but I cannot figure out a way to do this without changing the Data Format which fundamentally changes the texture.

    Here are the steps I'm following:

    1. Create a material using the Unlit - Transparent Colored shader and the exported texture.
    2. Create a game object and attach the UIAtlas script to it.
    3. Specify the Material from step 1.
    4. Drag the texture packer - exported text file that includes your site list into the "TP Import"
    5. Save this game object as a prefab--it 's now your new atlas.

    Thanks for any help on this :)