I’ve included an example page from the SpriteAtlas I’m working on. There are three sprite sheets packed onto the page. Let’s call them pink, brown, and green.
Here’s my problem. When I use SpriteAtlas.GetSprite() to get them by name, the sprites returned look fine on screen. However, each of them references the same texture and don’t seem to contain useful rect or textureRect values (rect shows 0,0 as the origin and the width and height are always the same because all the original sheets have the same width and height, textureRect shows all zeros).
I use Texture2D.GetPixels() to create copies of Sprites so I can manipulate them without affecting shared textures.
What this means is that I can duplicate the pink sprite with no problem but I will get the pink images when I try to duplicate the brown or green sprites.
Did I miss something obvious or should I put in a bug report?