Search Unity

Subclassing ForwardRenderer

Discussion in 'Universal Render Pipeline' started by aaronm64, Apr 17, 2020.

  1. aaronm64

    aaronm64

    Joined:
    Nov 24, 2018
    Posts:
    17
    I am curious why ForwardRenderer is sealed and not written to be subclassed. Could anyone share more information?

    For the time being, copying ForwardRenderer source code and modifying it works, but this makes it difficult to receive bug fixes as URP evolves.
     
  2. Shane_Michael

    Shane_Michael

    Joined:
    Jul 8, 2013
    Posts:
    158
    For no particular reason, apparently, as allowing subclassing of ForwardRenderer is already in the change log although looks like it is still unreleased as of 9.0.0-preview14.
     
  3. Shaunyowns

    Shaunyowns

    Joined:
    Nov 4, 2019
    Posts:
    328
    I can try pass this post over and see if I can get more information for you!
     
  4. aaronm64

    aaronm64

    Joined:
    Nov 24, 2018
    Posts:
    17
    Good to know, thanks for pointing that out!


    Thanks Shaun!