Search Issue Tracker
By Design
Votes
0
Found in
2022.3.52f1
6000.0.26f1
6000.1.0a3
7000.0.0a1
Issue ID
UUM-75592
Regression
Yes
[URP] Sprite is redrawn on every Camera movement frame after its Render Type is changed from Overlay to Base and Camera Transform Component is changed
How to reproduce:
1. Open the attached project "CameraBug"
2. Open the "SampleScene" scene
3. Select the "Main Camera" GameObject in the Hierarchy
4. In the Inspector change the "Render Type" field to "Overlay"
5. Change the "Render Type" to "Base"
6. Make sure the Game View is visible
7. Change the Rotation or the Position of the "Main Camera" GameObject
8. Observe the Game View
Expected results: A single instance of the Sprite is drawn in the Game View
Actual results: The Sprite is drawn on every Camera change
Reproducible with: 2023.2.0b4, 6000.0.10f1
Not reproducible with: 2021.3.40f1, 2022.3.36f1, 2023.2.0b3
Reproducible on: macOS Sonoma 14.5 (M1)
Not reproducible on: No other environment tested
Notes:
- Only reproducible in URP
- Triggering the Game View redrawing (e.g. by maximizing or docking) solves the issue
- Reproducible in the Play Mode
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
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
Resolution Note:
Verified to be as designed. Switching Camera Type to Overlay sets the Background Type to Uninitialized, causing the background not to be cleared. If the camera is to be used as a Base render type, you'll have to switch the Background Type to Skybox or Solid Color.