How to get the current renderingPath (set in GraphicsSettings) at runtime from script?

Hi guys,

I would like to know if there is a way, at runtime and from script, to get the current renderingPath, to enable/disable some FX depending of if I use Forward or Deferred rendering
If my Camera has it’s renderingPath set to UsePlayerSettings, I would like to know what is the value set in the PlayerSettings…
I looked, but it seems that the only way to get it from script is via the UnityEditor.Rendering.EditorGraphicsSettings.GetTierSettings. But I want to access it at runtime (so via something in UnityEngine).
I totally get that this value cannot be modified during PlayMode, but why is there no readonly value accessible?

Thanks

I can’t see anything for this in our runtime script API :frowning: It’s worth requesting this at https://feedback.unity3d.com/

Done: https://feedback.unity3d.com/suggestions/add-a-readonly-property-to-get-the-current-renderingpath-set-in-graphicssettings-at-runtime-from-script
Thanks

1 Like

I just spotted this! Can 'Camera.actualRenderingPath' be 'RenderingPath.UsePlayerSettings'?

That’s perfect! How did I miss that??
Thanks :slight_smile:

1 Like

I was thinking the same thing when I tried to find it for you the first time…! :sweat_smile: