Search Unity

Question Modify Diffusion Profile Settings from scripting?

Discussion in 'High Definition Render Pipeline' started by ccsander, Oct 21, 2021.

  1. ccsander

    ccsander

    Joined:
    May 17, 2013
    Posts:
    44
    Is there a way to modify the HDRP diffusion profile settings from a script? The DiffusionProfileSettings class is internal and not accessible. I would like to be able to control scattering distance of a specific profile at runtime.

    Thanks in advance if anyone has an idea on this.
     
  2. adrien-de-tocqueville

    adrien-de-tocqueville

    Unity Technologies

    Joined:
    Mar 16, 2020
    Posts:
    266
    Hello, we are adding this functionality for HDRP 13, coming with 2022.1.
    Until then, all diffusion profile APIs are internal so it is not possible to change them with a script
     
  3. ccsander

    ccsander

    Joined:
    May 17, 2013
    Posts:
    44
    Thank you for the reply! I'm glad to hear it is going to be added.