Search Unity

Feedback HDRenderPipelineAsset settings in code

Discussion in 'High Definition Render Pipeline' started by andyz, Nov 4, 2020.

  1. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,276
    Can I change things like the MSAA level in code?
    And other options set in the HDRenderPipelineAsset?

    The scripting doc also just outlines classes and functions but not how to get an element of the Volume, for instance, at runtime.

    (HDRP could make it easier to adjust things in code)


    Feedback:

    Trouble with API docs -
    You have three places:
    1. Main Unity Scripting Docs
    2. com.unity.render-pipelines.core package doc between Unity & HDRP!
    3. com.unity.render-pipelines.high-definition doc

    They seem not linked and the packages do not have example code?
     
    Last edited: Nov 4, 2020
  2. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,276
    (Unity 2020.1.8)

    Can toggle on and off Global Volume Profiles but bit buggy - if you have shadows turned off in one it does not actually turn them off (need an enable toggle?), you have to set distance to 0!
    Same with AO - need to set intensities to 0 to turn off on a profile!

    So alternative as per examples in 2020.2 beta - multiple pipeline assets per quality level, different style of settings but...
    So set shadow count to 0 on lowest quality - oops lots of errors (bug #1290357)