- Home /
Material property block for DecalProjector?
I need individual shader parameters per-decal when spawning a hit effect.
I want to make use of HDRP's instancing to spawn many decals, so don't want to duplicate the material.
Normally, I'd get at the property block through the Renderer. But a DecalProjector has no renderer or method I can see to return the property block. Is this a technical limitation (if so, does this mean spawning e.g differently coloured decals isn't supported unless they have unique materials? this would seem an important feature...), or am I missing an obvious way of doing this?
Your answer
![](https://koobas.hobune.stream/wayback/20220613001748im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to make a combined mesh readable, or access the original sharedMesh? 1 Answer
HDRP Decal projection from mesh shape, e.g. for creating a winding road 1 Answer
Dynamic Runtime Decals 0 Answers
Decals on uneven surfaces using orthographic camera for mobile 0 Answers
Delete a Decal Projector at Runtime 0 Answers