I need it for do something like this:
newSprite.SetRect(x,y,texWidth,texHeight);
newSprite.atlas = atlas;
newSprite.spriteName=photoAddress;
And it works, but I don't know how to update (or make) atlas. I found class UIAtlasMaker, but I don't know how to use it.