Search Issue Tracker

By Design

Votes

1

Found in

2022.3.17f1

2023.2.5f1

2023.3.0b2

6000.0.0b11

Issue ID

UUM-60658

Regression

No

Decal Renderer Features do not change when toggling in Player

--

-

Reproduction steps:
1. Open the attached "UrpRendererFeatureToggleTest" project
2. Build and Run
3. Press the "d" key and observe the Player

Expected results: Toggling Decal RendererFeatures in the Player changes it
Actual results: In the Player toggling the Decal RendererFeatures causes no change

Reproducible with: 2022.3.17f1, 2023.2.5f1, 2023.3.0b2
Could not test with: 2021.3.34f1 (rendererDataList is not defined)

Reproducible on: Windows 11 Pro
Not reproducible on: No other environments tested

Notes:
- Not reproducible in Play Mode
- More about the SSAO Renderer Feature in the Internal Notes

  1. Resolution Note:

    Toggling the Decal Renderer Feature in Player fails due to Shader Variant Stripping. The shader variants used for rendering without decals enabled get stripped, since the project only has a single URP Asset, with a single Renderer, which has the Decals feature enabled.

    To prevent this variant from getting stripped, you can either:
    - Add another Renderer to the URP Asset, which has the feature disabled. This will prevent the shader stripper from removing the relevant variants.
    - Disable "Strip Unused Variants" project setting. This isn't recommended as it will bloat the built player.

    We'll treat the ability to mark a Renderer Feature as something that will be toggled at runtime as a feature request, and track it internally.

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.