Merge pull request #2570 from saturday06/replace-obsoleted-renderPipelineAsset-with-defaultRenderPipeline

Unity6でGraphicsSettings.renderPipelineAssetがObsolete警告を出すのに対応
This commit is contained in:
ousttrue
2025-02-03 19:38:14 +09:00
committed by GitHub

View File

@@ -28,7 +28,11 @@ namespace VRM.DevOnly
public static void SwitchBuiltinPipeline()
{
#if UNITY_6000_0_OR_NEWER
UnityEngine.Rendering.GraphicsSettings.defaultRenderPipeline = null;
#else
UnityEngine.Rendering.GraphicsSettings.renderPipelineAsset = null;
#endif
}
public static void BuildWebGL_SimpleViewer()