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

Search

-

Steps to reproduce:

  1. Create a new HDRP project
  2. In the Hierarchy, select the Sun object
  3. In the Inspector view, observe that the Shadow Map option is enabled
  4. Open a Search window
  5. Enter a following query - "#Light.m_Shadows.m_Type=1"
  6. Observe that the query returns 0 results
  7. In the Inspector view, disable and re-enable the Shadow Map option for the Sun object
  8. 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
  1. 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.

  2. 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.

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.