Search Issue Tracker
Won't Fix
Votes
0
Found in
2021.3.45f1
2022.3.51f1
6000.0.25f1
6000.1.0a2
6000.2.0a1
Issue ID
UUM-85782
Regression
No
Debug.DrawLine depthTest parameter starts flickering during OnSceneGUI() when SceneView.RepaintAll() is used
Reproduction steps:
1. Open the attached “UnityBugReport.zip” project
2, Open the “SampleScene” Scene
3. Open the “DebugDrawLineDepthTest.cs” script from the Project Window
4. Comment out or delete the “SceneView.RepaintAll();” line and Save the script
5. Select the “DebugDrawLineDepthTest” GameObject from the Hierarchy
6. Move the mouse cursor from the Scene view to the Hierarchy Window
7. Observe the red line during 6th step in the Scene view
Expected result: The line does not flicker
Actual result: The line flickers
Reproducible with: 2021.3.45f1, 2022.3.51f1, 6000.0.25f1, 6000.1.0a2
Reproducible on: Windows 11
Not reproducible on: no other environment tested
Note:
- In the “DebugDrawLineDepthTest.cs” script uncommenting the{{SceneView.RepaintAll();}} line, stops the flickering, but makes the depthTest parameter not work at all
Comments (1)
-
samuelbrcks
Oct 29, 2024 02:37
We all experience some things in life that words can not really explain, even if you say it will be hard to believe but this true i met with a legitimate cyber security company who can help with any cyber problem you just name it and they deliver on point, like i said it will be hard to believe but if you do not try you can never get a result of any such , premiumhackservices AT gmail DOT com at you disposal, my honest advice is to make use of them not just dispose them.
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
- Mouse input is registered incorrectly in Custom RP when downscaling Render Target and rendering Overlay UI before final upscale
- Time.deltaTime is locked to the display's refresh rate when the built Player is moved to a Secondary Display and Windowed Mode is used
- Crash on RaiseException when importing a specific asset
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
Resolution Note:
Debug.DrawLine is for debugging playmode only. It must not be called from Editor.OnSceneGUI. See: https://docs.unity3d.com/6000.0/Documentation/ScriptReference/Debug.DrawLine.html. For Editor gizmos, try Handles.DrawLine from inside Editor.OnSceneGUI, or for your use case try Gizmos.DrawLine from inside MonoBehaviour.OnDrawGizmos or OnDrawGizmosSelected.