Skip to content

Instantly share code, notes, and snippets.

@TheAllenChou
Created January 15, 2021 18:35
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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