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
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR 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")