Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
string rpAsset = "";
if (GraphicsSettings.renderPipelineAsset != null)
rpAsset = GraphicsSettings.renderPipelineAsset.GetType().Name;
if (rpAsset.Equals("HDRenderPipelineAsset"))
renderPipeline = RenderPipeline.HDRP;
else if (rpAsset.Equals("UniversalRenderPipelineAsset"))
renderPipeline = RenderPipeline.URP;
renderPipeline = RenderPipeline.BuiltIn;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment