Search Issue Tracker

Fixed

Fixed in 6000.0.26f1, 6000.1.0a1, 7000.0.0a9

Votes

0

Found in

6000.0.19f1

Issue ID

UUM-79997

Regression

Yes

A "NullReferenceException" error is thrown when trying to Add Tags and Layers when URP settings are present in the project with a broken UniversalRP Asset

--

-

How to reproduce:
1. Open the “TDS.zip“ project
2. Open the “GameScene“ Scene
3. Select any one GameObject in the Hierarchy
4. Click on a “Tag” dropdown / “Layer” dropdown
5. Click on “Add Tag…“ / “Add Layer…“
6. Observe the Console

Alternatively:
1. Open the “TDS.zip“ project
2. Open the “GameScene“ Scene
3. Open the “Project Settings”
4. Select the “Tags And Layers“ section in the Project Settings
5. Observe the Console

Expected results: The Console is clear
Actual results: A “NullReferenceException“ error is displayed in the Console

Reproducible in: 2023.3.0b3, 6000.0.19f1
Not reproducible in: 2021.3.43f1, 2022.3.46f1, 2023.3.0b2

Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested

Notes:
- This is reproducible on the attached project only
- The start of the error reads:
” NullReferenceException: Object reference not set to an instance of an object
at UnityEditor.Rendering.RenderPipelineEditorUtility.GetMaxRenderingLayersFromSettings () [0x00029] in <43e76eb92538417eb982ad34fee8a720>:0 <…>”

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.