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.
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
This is a feature request and will be treated as such