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.

Resolved How to access HDRP Decal Projector with script and more...

Discussion in 'High Definition Render Pipeline' started by Kadae, Dec 18, 2021.

  1. Kadae

    Kadae

    Joined:
    Dec 7, 2013
    Posts:
    52
    Is there any difference between HDRP Decal Projector and Decal Projector? Or just API outdated?

    upload_2021-12-18_23-3-47.png

    upload_2021-12-18_23-4-2.png


    I'm asking because I want to access HDRP Decal Projector in my script, but I can't.

    Code (CSharp):
    1. DecalProjector _decalProjector = GetComponent<DecalProjector>();
     
  2. Kadae

    Kadae

    Joined:
    Dec 7, 2013
    Posts:
    52
    I receiving NullReferenceException: Object reference not set to an instance of an object ...