Search Issue Tracker

Fixed in 10.1.0



Found in [Package]


Issue ID




'Look rotation viewing vector is zero' warnings after setting Spot Light's Range to 0 in SRP

Package: Scriptable Render Pipeline Core


Steps to repro:
1. Create the new project in URP or HDRP on Windows;
2. Create the new scene;
3. In the Hierarchy click '+' and select Light>Spotlight;
4. In the Inspector type '0' in the Range field.

Actual result:
Multiple warnings:
"'Look rotation viewing vector is zero
UnityEngine.Quaternion:LookRotation (UnityEngine.Vector3)
UnityEditorInternal.Slider1D:Do (int,UnityEngine.Vector3,UnityEngine.Vector3,UnityEngine.Vector3,UnityEngine.Vector3,single,UnityEditor.Handles/CapFunction,single)
UnityEditorInternal.Slider1D:Do (int,UnityEngine.Vector3,UnityEngine.Vector3,single,UnityEditor.Handles/CapFunction,single)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)"

are shown in the Console. See the attached video.
Regression introduced in Unity 2019.3.0

Expected result:
No warnings are shown after changing the Spot light's range to 0.

- Reproducible in Version 2021.1.0a1, 2020.2.0b7, 2020.1.9f1, 2019.4.12f1, 2019.3.16f1;
- Not reproducible in 2019.2.21f1, 2019.1.14f1, 2018.4.28f1;
- Reproducible only on Windows; not reproducible on OSX;
- Reproducible only in SRP (URP and HDRP) Version 7.3.1 - 10.0.0;
- Reproducible only for the Spot light; not reproducible for Area and Point lights.

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.