Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

RenderFeatures management - Best practices?

Discussion in 'Universal Render Pipeline' started by demonixis, Apr 9, 2021.

  1. demonixis

    demonixis

    Joined:
    Aug 20, 2013
    Posts:
    185
    Hi there,
    I'm using many render features in my project and I wanted to know what are the best practices to deal with them. For instance, I've a single forward renderer asset with the following features
    - SSRLow : Shiny SSR for lower platforms
    - SSRMedium :
    - SSRHigh
    - SSAO
    - LightShaft
    - MoonShaft

    I've a script that i use to disable or enable what I want, depending of user settings. The SSR can be set multiple time on the Renderer so I can enable the one that is tweaked according to user settings. My main problem is that I can't do that for SSAO because I can just add one SSAO feature.

    Because it's a private class, I can't retrieve it to change it during runtime. So do you have an idea on how to solve this problem?

    Can I add render features at runtime?