Search Unity

  1. Unity 2019.1 is now released.
    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 :)