How to reproduce:
1. Open the attached “IN-104042” project
2. Open the “SampleScene” Scene
3. Enter Play mode
4. Click the Buttons “Enable drawings” and “Disable drawings”
5. Observe the result
Expected result: The orange overlay remains on the sphere
Actual result: The orange overlay disappears when drawings are enabled
Reproducible with: 6000.0.29f1, 6000.0.51f1, 6000.1.7f1, 6000.2.0b5
Not reproducible with: 2022.3.63f1
Could not test with: 2023.1.0a1 (Could not clear namespace errors from PrimalBlit.cs ), 6000.0.28f1 (Screen goes black with this message in the Console: “Missing types referenced from component UniversalRenderPipelineGlobalSettings on game object UniversalRenderPipelineGlobalSettings”)
Reproduced on: Windows 11
Not reproduced on: No other environment tested
Notes:
- Also reproducible in Player
- The project for 2022 and Unity6 are structured differently because of the Render Graph implementation