Search Issue Tracker
By Design
Votes
0
Found in
2023.2.10f1
2023.3.0b7
Issue ID
UUM-63981
Regression
Yes
Gameobject Material is not rendered when an asset bundle is built containing the Material with HDRP Shader and Instantiated
Reproduction steps:
1. Open the “ReproProject“ project
2. Open the Bug Repro Editor window (Window > Bug Repro Editor Window)
3. Select the “Assets/Cube“ as the Target Object in the Bug Repro Editor window
4. Click the “Build to bundle“ button in the Bug Repro Editor window
5. Click the “Load and Instantiate Object“ button in the Bug Repro Editor window
6. Select the “Assets/StreamingAssets/cube” in the Open Asset Bundle popup window
7. Observe the Scene view
Expected result: The cube is gray
Actual result: The cube color is pink
Reproducible with: 2023.1.0a26, 2023.2.10f1, 2023.3.0b7
Not reproducible with: 2022.3.19f1
Couldn’t test with: 2021.3.35f1, 2023.1.0a1, 2023.1.0a25 (due to compilation errors)
Reproducible on: Windows 11 Pro (22H2)
Not reproducible on: No other environment tested
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
- Error “Shader error in 'YSCloudCover': call to 'tex3D' is ambiguous at Assets/YSCloudCoverText.shader(606) (on d3d11)“ is present when compiling tex3D shader with DXC
- Placeholder asset is not loaded with Advertisement Legacy sample when using the latest version of the package
- Addressables content build fails but the Player build is successful when building a development build
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
Resolution Note:
The problem is that the project has URP render pipeline assets assigned in Quality Settings (see Project Settings > Quality > Levels). Assets in associated Quality levels and Graphics Settings cannot belong to different render pipelines. For the Performant and Balanced levels, set Rendering >Render Pipeline Asset to the HDRP render pipeline asset (Assets\HDRPDefaultResources\New HDRenderPipelineAsset.asset). If needed, close + reopen the project and delete the old bundles in Assets\StreamingAssets. Then the cube.unity3d bundle can be rebuilt correctly.