Search Issue Tracker
By Design
Votes
0
Found in
2018.1.0a1
2018.4
2018.4.23f1
2019.4
2020.1
2020.2
Issue ID
1256471
Regression
Yes
Range and direction of the Light component are not shown in the Game view when Gizmos are toggled on
How to reproduce:
1. Open the attached "GizmoGameView" project
2. Open the "SampleScene" Scene
3. Make sure that Gizmos are toggled on in the Game view
4. In the Hierarchy select "Directional Light" GameObject
Expected result: Range and direction of the "Directional Light" GameObject are visible in the Game view
Actual result: Range and direction of the "Directional Light" GameObject are not visible in the Game view
Reproducible with: 2018.1.0a1, 2018.4.24f1, 2019.4.1f1, 2020.1.0b14, 2020.2.0a15
Not reproducible with: 2017.4.40f1
Note: Reflection Probe is the only Light component which range is visible in the Game view when selected
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
- [Android][Vulcan] "UNITY_DISPLAY_ORIENTATION_PRETRANSFORM" is always 0 when the render pipeline is URP
- Editor loads for a long time when doing an Undo action in a large Shader Graph
- Memory leak when building AssetBundles
- [Asset Bundle] AudioSource output field not staying connected correctly when loaded from Asset Bundle
- [Android] Duolashock4 controller is not detected after disconnecting and reconnecting controller while the Player is running in the background
Resolution Note (2020.2.X):
Handles drawn through OnSceneGUI are by design not drawn in the Game View. MonoBehaviour components are able to register a callback in managed code to override the gizmo drawing, however Light is a native component.
As far as gizmos are concerned, this is working as designed. It would be preferable to move gizmo drawing (for both Scene and Game views) into Editor code, which would avoid this issue and allow inheriting Editor classes to override gizmo drawing. Work is scheduled within SRP and Scene Tooling to add this functionality.