Search Issue Tracker
Active
Under Consideration for 1.21.X, 2.1.X
Votes
1
Found in [Package]
1.21.21
2.1.0
Issue ID
ADDR-3709
Regression
No
A URP shader variant does not get loaded from an Asset Bundle when Building the Player
How to reproduce:
1. Open the “Addressables_URP_bug“ project
2. Open the “SampleScene“
3. In the top bar menu of the Editor click on the “Bug Test/Make Not Work“
4. In the top bar menu of the Editor click on the “Bug Test/Addressable Clean All“
5. Go to “File/Build Settings“
6. Make a Clean Build
7. Open and Observe the Player
Expected result: The “Cube (1)“ GameObject is green
Actual result: The “Cube (1)“ GameObject is magenta
Reproducible with: 1.21.21 (2022.3.36f1), 2.1.0 (2022.3.36f1, 6000.0.9f1)
Could not test with: 1.21.21 (2021.3.40f1) (with this version “Renderer.SetMaterials“ method does not exist)
Reproducible on: macOS 14.5 (Intel), Windows 10 Pro (22H2)
Not reproducible on: No other environments tested
Workaround: Explicitly call the “GatherShaderFeatures“ method from the "UnityEditor.Rendering.Universal.ShaderBuildPreprocessor", then clean the Player content and the purge cache before building the Player
Note: Not reproducible in the Editor
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Prefab override popup is cropped/positioned incorrectly when more than one display is used and a higher display Scale is set
- Opening a dropdown on a small screen results in its instant closing when mouse cursor is pressed where the dropdown is going to be opened
- Only "ArgumentNullException: Value cannot be null" is displayed instead of all the actual errors when opening a project with numerous compilation errors
- MultiColumnListView and MultiColumnTreeView do not change selection on first input when focus is set by code
- SerializedProperty.DataEquals is returning false when SerializedProperty.EqualContents return true
Add comment