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. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Sprite Atlas Atlas, add by script on runtime?

Discussion in '2D Experimental Preview' started by castor76, Dec 17, 2016.

  1. castor76


    Dec 5, 2011
    I think sprite atlas is really cool feature because it let you create sprites in very organic manner while developing the game. It's really useful when you have not nailed down the exact spec or look of your sprite sheet texture but still able to atlas them just before the game starts and then enjoy the batching etc.

    However, I was thinking and looking at the process and begin wondering just how and when this actually happen. And I think it does some packing just before the game starts and it makes me think that this will only happen in the editor.

    Is there way for us to add the sprite lists and pack them during run time using api ?

    There is Texture2D packing api for runtime, so is there way for us to utilize it and then convert texture2d into sprite atlas?