Search Issue Tracker

Fixed in 2021.2.X

Votes

0

Found in

2018.4

2019.4

2020.3

2020.3.2f1

2021.1

2021.2

Issue ID

1327723

Regression

No

OnDrawGizmos is not called if Game Object is in an additive scene and Draw Gizmos is enabled on the Game View

Scene/Game View

-

How to reproduce:
1. Open the attached project
2. Enable Gizmos at Top Right of Game View
3. Click Play
4. Observe Game View

Expected result: You can see a cyan line
Actual result: You cannot see a cyan line

Reproducible with: 2018.4.33f1, 2019.4.23f1, 2020.3.4f1, 2021.1.3f1, 2021.2.0a13

Workaround: Disable/Enable the object that draws Gizmos at Start or select the object in the Scene Hierarchy

Notes:
1. If you go to Scene View and enable Gizmos the line won't be visible there as well
2. You can make sure OnDrawGizmos is not called by adding a Debug.Log statement to the OnDrawGizmos method
3. Gizmos must be enabled in Game View for this to reproduce

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.