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
Comments (1)
-
Peter77
Jan 28, 2024 09:57
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
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.