Sprites from SpriteAtlas has incorrect rect/textureRect information

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?

Thanks for the post. Could you please file a bug report and post the Bug ID here ? We will take a look asap.

Submitted. Thank you for your quick reply. The Bug ID is 1252250.

http://fogbugz.unity3d.com/default.asp?1252250_psksacln4p0mmqnj

Well… SpriteAtlas.GetSprite(name) returns Sprite with zero textureRect data.
textureRect is usefull in case of creating textures for runtime materials, but this problem makes me skip
SpriteAtlas packing.