Skip to content

Instantly share code, notes, and snippets.

@TheAllenChou
Created January 15, 2021 18:35
Show Gist options
  • Save TheAllenChou/1ba260c96d0798aaed574713b22494ab to your computer and use it in GitHub Desktop.
Save TheAllenChou/1ba260c96d0798aaed574713b22494ab to your computer and use it in GitHub Desktop.
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;
else
renderPipeline = RenderPipeline.BuiltIn;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment