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
- Created asset is placed in a new folder when creating a new folder and instantly creating an asset by clicking somewhere else
- Selecting and deleting transition in Animator does not add to Undo History when animation is previewed in Inspector
- GameObjects remain static when updating constraints of PhysicsJoint with "Enable Sleeping" selected in Havok Physics Configuration
- [iOS] Touch input is not clocked and UI is unresponsive when the application is paused mid-drag without lifting the finger
- [sw-unity-6-1] Scene view renders any light differently when more than one camera exists and neither have the "MainCamera" tag
Add comment