1
Support / SpriteCollectionData has incorrect value for "Count"
« on: June 07, 2015, 06:04:32 am »
I'm trying to use the .Count property of several SpriteCollectionData assets, and I've found that some of the counts do not reflect the true number of sprites inside. (So I'm getting out of index errors) I have a few sprite collections where I removed a few sprites, and so I'm guessing that the SpriteCollectionData is not updating that count property when you remove sprites?
You can see here, that during debug the sprite collection is saying it has 5 sprites, in reality you can see it only holds 4. I have other sprite collections that appear to show the correct sprite count as well.
Any idea why this is happening? I'm running Unity 5.0.2f1.
![](http://i559.photobucket.com/albums/ss36/rxmarccall/Screen%20Shot%202015-06-06%20at%2010.58.13%20PM_zpscnywlmqw.png)
You can see here, that during debug the sprite collection is saying it has 5 sprites, in reality you can see it only holds 4. I have other sprite collections that appear to show the correct sprite count as well.
Any idea why this is happening? I'm running Unity 5.0.2f1.
![](http://i559.photobucket.com/albums/ss36/rxmarccall/Screen%20Shot%202015-06-06%20at%2010.58.13%20PM_zpscnywlmqw.png)
![](http://i559.photobucket.com/albums/ss36/rxmarccall/Screen%20Shot%202015-06-06%20at%2010.58.51%20PM_zpsufdmriwm.png)