Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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?