Search Issue Tracker
Fixed in 2019.1.X
Votes
7
Found in
2018.3.0a1
2018.3.0f2
2019.1.0a1
Issue ID
1115285
Regression
No
"sprite.textureRect" returns values for master SpriteAtlas instead of SpriteAtlas Variant
Reproduction steps:
1. Open "UnityTestProject.zip" project
2. Enter Play mode
3. Look at the Console
4. See "sprite.textureRect" values and the Sprite width and height
Expected Result: "sprite.textureRect" returns values for SpriteAtlas Variant
Actual Result: "sprite.textureRect" returns values for master SpriteAtlas
Fixed in: 2019.2.0a6, 2019.1.0b5
Reproduced with: 2019.1.0a13, 2018.3.2f1
Did not reproduce on: 2017.4.18f1, 2017.3.0a1 (Error)
Error:
"UnityException: Sprite is not rectangle-packed. TextureRect is invalid."
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- GfxDevice::UpdateBufferRanges when running UIBuilder tests
- [Android][BiRP] Depth processing is handled incorrectly on certain Android devices when using 2 camera's
- [APV] Cancelling Display Dialog Error is thrown after Adaptive Probe Volumes tab is open in Lighting Window
- [APV] NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
Resolution Note (fix version 2019.1):
"sprite.spriteAtlasTextureScale" will return for a given sprite