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.

  1. Resolution Note:

    This is a feature request and will be treated as such

Comments (1)

  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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.