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
- Inspector's custom tooltip is displayed incorrectly when the name is truncated in UI toolkit
- Crash on ScriptableRenderLoopDraw when rendering a specific VFX in Play Mode
- The script is not renamed in the Project window when renaming and a compilation Error is present
- Average FPS in Play Mode degradation on a newly created BiRP project when it's upgraded from 2020.3.48f1 to a newer Editor version
- DecoratorDrawer indentation is incorrect when it is called with EditorGUI
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")