Search Issue Tracker
Feature Request
Feature Request in 2021.3.X
Votes
1
Found in
2021.3.15f1
Issue ID
UUM-21590
Regression
No
[HDRP] Decal Projector is not instantiating its own material during runtime
From forum thread : https://forum.unity.com/threads/how-to-change-decal-color-at-runtime-hdrp.635023/
The Decal Projector is not instantiating its own material when calling
{noformat}
DecalProjector.material{noformat}
The behaviour should be similar to the Renderer apis:
{code:java}
Renderer.material
Renderer.sharedMaterial{code}
Where .sharedMaterial returns the original material, and .material will create an instance of the material if needed and return it.
This makes the code easier to write for users, and also avoid to manipulate the referenced material asset by error.
Comments (1)
-
scourgey
Jun 14, 2023 16:53
If I try and create a new material instance for a specific decal it does not allow it, voiding most of the documentation, thus making this a bug and not a feature request.
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note:
This is a feature request and will be treated as such
Resolution Note (2021.3.X):
This is a feature request and will be treated as such