Created
January 15, 2021 18:35
-
-
Save TheAllenChou/1ba260c96d0798aaed574713b22494ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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