Search Issue Tracker
Fixed
Fixed in 6000.0.3f1
Votes
0
Found in
6000.0.0b11
Issue ID
UUM-67706
Regression
No
Sprite Renderer stops reacting to changes when "Draw Mode" is changed and Size properties are set to 0
Reproduction steps:
1. Open the attached “sprite renderer 2d.zip” project
2. Select the “Square” GameObject
3. In the Inspector in the Sprite Renderer Component set the Width to '0'
4. Change the “Draw Mode” property to ‘Simple’
5. Change the “Draw Mode” property back to ‘Tiled’
6. Change the Width back to '1'
Expected result: The Sprite is visible
Actual result: The Sprite doesn’t react to changes and the actual Width remains 0
Reproducible with: 2021.3.36f1, 2022.3.21f1, 2023.2.15f1, 6000.0.0b11
Reproducible on: Windows 11
Not reproducible on: no other environment tested
Notes:
- Only happens when switching from “Tiled” to “Simple” Draw Modes
- Also reproduces with Height property
- After performing these steps and trying to add a new Sprite Renderer component, new sprites also remain invisible, therefore new GameObject needs to be created
- Console error also gets thrown: “transform.localScale assign attempt for 'GameObject' is not valid. Input localScale is { NaN, 1.000000, 1.000000 }.UnityEditor.EditorGUI/PopupCallbackInfo:SetEnumValueDelegate (object,string[],int)”
- Reproducible on a new project
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note (fix version 6000.0.3f1):
Fix case where Sprite Renderer stops reacting to changes when "Draw Mode" is changed and Size properties are set to 0
Fix will be available on Unity 6000.0.3f1 and above