Search Unity

[URP] How to know the current rendering path from script with URP?

Discussion in 'Universal Render Pipeline' started by stephero, Jun 1, 2022.

  1. stephero

    stephero

    Joined:
    Feb 8, 2016
    Posts:
    123
    Hello,

    I am using URP, but I don't manage to know from the code if I currently use forward or deferred rendering path.
    Screenshot_25.png

    The legacy property Camera.actualRenderingPath is still accessible, still gives a value, but doesn't represent the real rendering path used by the URP renderer.

    From the script, I can get access to the UniversalRenderPipelineAsset, but I fail to get the UniversalRendererData from it.

    Is there a way?
    Thanks!