I am using the HDRP decal projector to project the ring. But I want to edit the projection size during runtime from a C# script. How can I access the HDRP libraries in the script so I can grab the decal projector and its properties through a GetComponent<>() script.
We don’t have proper API documentation yet, but you can easily get the decal projector component and change the size using GetComponent<DecalProjector>().size = new Vector3(X, Y, Z);
Now I just get an error that HighDefinition does not exist in that namespace. I have the HDRP package installed and up to date, as well as all its dependencies.
HDRP only comes out of experimental in 2019.3 (HDRP 7.x). Assuming you are using an earlier Unity version, and for example HDRP 6.x, you should use the following instead, but keep in mind that you will need to change it again once you start using versions 7 and higher of HDRP: