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
- EditorGUILayout.PropertyField foldout icon inside Vertical Layout Group has an incorrect indent when used with OnInspectorGUI()
- [Android] [iOS] "NullReferenceException: Object reference not set to an instance of an object" throws when entering the Play Mode/opening the application
- The Player freezes on load when building Web platform
- Animator "Conditions" tab breaks when the only Parameter is deleted and another one is created
- "Shader error in 'Universal Render Pipeline/Lit': maximum ps_5_0 sampler register index (16) exceeded" error thrown after a build is completed when the "LOD Cross Fade" parameter is 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")