Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question HDRP Decal Projector - Where is Projection Depth in the .cs file?

Discussion in 'High Definition Render Pipeline' started by Razputin, Sep 10, 2023.

  1. Razputin

    Razputin

    Joined:
    Mar 31, 2013
    Posts:
    347
    So I'm trying to modify a decals projection depth via code, but when I open the DecalProjector.cs file there's no variable for projection depth? Probably because it's a partial class. I can't seem to figure out where the other partial class is located though. Does anyone know how I can go about accessing projection depth?

    Thanks!
     
  2. chap-unity

    chap-unity

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    692
    It's not explicitly said anywhere I guess but It's the third component of the size Vector3 variable.

    x: width
    y: height
    z: depth
     
  3. Razputin

    Razputin

    Joined:
    Mar 31, 2013
    Posts:
    347
    Okay yup that's what it was, thank you :)
     
    chap-unity likes this.