Search Issue Tracker
Feature Request
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.
-
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
- VFX Graph Memory leak when calling the ClearPropertyBinders and AddRemoveVFXProperty
- Entering "Configure Avatar" inside the Inspector locks it
- [Render Graph Viewer] Resource list icons cropped and in inconsistent positions
- Scene View with Debug Draw Mode enabled is gray when GPU Resident Drawer is enabled
- The UI is not visible when resizing out of focus built Player window with Application.runInBackground set to false
Resolution Note:
This is a feature request and will be treated as such