Search Issue Tracker
By Design
By Design in 6000.6.X
Votes
0
Found in
2022.3.74f1
6000.0.70f1
6000.3.11f1
6000.4.3f1
6000.5.0b3
6000.6.0a3
Issue ID
UUM-139841
Regression
No
Search #Light.m_Shadows.m_Type query block does not detect default Light objects in Scene unless they were modified
Steps to reproduce:
- Create a new HDRP project
- In the Hierarchy, select the Sun object
- In the Inspector view, observe that the Shadow Map option is enabled
- Open a Search window
- Enter a following query - "#Light.m_Shadows.m_Type=1"
- Observe that the query returns 0 results
- In the Inspector view, disable and re-enable the Shadow Map option for the Sun object
- Observe that the query returns again
Actual results: The query only returns the correct results after the option was disabled and re-enabled
Expected results: The query returns the correct results without manual modifications
Reproducible with versions: 2022.3.74f1, 6000.0.71f1, 6000.3.11f1, 6000.4.3f1, 6000.5.0b3, 6000.6.0a3
Tested on (OS): Windows 11, macOS 26.3.1
Notes:
- The issue is reproducible after creating a new project or after creating a new scene
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
- UI counter displays incorrect collectible count when using "Remaining_Collectibles_UI" Prefab in "Get Started With Unity" template
- Camera Output Texture does not revert back to previously set Render Texture when camera selection in UI Builder canvas background is changed
- Some post-processing volume overrides only update after a refresh when using HDRP
- Video Player glitches when Skip On Drop is enabled
- GameObject movement in Scene view becomes stuttery and intermittently freezes when using non-standard pointers across editor tabs or window boundaries
Resolution Note:
This one is tricky to explain but it works as Designed:
- In HDRP the shadow is shown as a Boolean but internally it is represented as an Enum.
- #Light.m_Shadows.m_Type=1 => this matches the Enum HardShadow. But by default enabled shadow are Soft (2)
- If you search using #Light.m_Shadows.m_Type=2 you will match stuff.
- If you enable + disable it somehow sets the Shadow to Hard (which matches the original query)
- If you want to see an example for yoursefl: right click on the Shadow -> enable property in the Inspector and select the menu item: Search Same PRoperty Value. You will see that the query is correctly setup to use Enum values.
If there is a bug it could be in the HDRP code that sets up the shadow value. Why enabled + disable sets it to hard?
But search is working as intended.
Resolution Note (6000.6.X):
This one is tricky to explain but it works as Designed:
- In HDRP the shadow is shown as a Boolean but internally it is represented as an Enum.
- #Light.m_Shadows.m_Type=1 => this matches the Enum HardShadow. But by default enabled shadow are Soft (2)
- If you search using #Light.m_Shadows.m_Type=2 you will match stuff.
- If you enable + disable it somehow sets the Shadow to Hard (which matches the original query)
- If you want to see an example for yoursefl: right click on the Shadow -> enable property in the Inspector and select the menu item: Search Same PRoperty Value. You will see that the query is correctly setup to use Enum values.
If there is a bug it could be in the HDRP code that sets up the shadow value. Why enabled + disable sets it to hard?
But search is working as intended.