Search Issue Tracker
By Design
Votes
1
Found in [Package]
12.0.0
Issue ID
1333729
Regression
No
[HDRP] Decal Material's texture is not updated when it's set during runtime with SetTexture
How to reproduce:
1. Open the user's attached "RuntimeDecalBug.zip" project
2. Open the "SampleScene"
3. Enter Play Mode
4. Press the Scene tab
5. Select the "Will be added a decal instance once play started" GameObject
6. Observe the Scene view
Expected result: "Will be added a decal instance once play started" GameObject is rendered
Actual result: "Will be added a decal instance once play started" GameObject is not rendered
Reproducible with: 7.6.0 (2019.4.26f1), 10.5.0 (2020.3.7f1), 11.0.0 (2021.1.6f1), 12.0.0 (2021.2.0a16)
Notes:
- The issue is not reproducible when setting the texture on HDRP/Lit
- The texture is updated when updating it manually in the Inspector during runtime
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
- Skinned Mesh Renderer with multiple Animator Components does not render when "Optimize Game Objects" is enabled
- [iOS]Certain characters are not displayed when using iOS devices with 18 OS and newer
- Trees do not render in 'Unity Terrain - URP Demo Scene'
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
Resolution Note:
Base Map has to be assigned to the Material in order to make the SetTexture work for a specific Material as unsused variants for shaders are currently removed and can't really assign to material's that the shader was received with Shader.Find("HDRP/Decal")