Skip to content

Commit

Permalink
Merge pull request #2570 from saturday06/replace-obsoleted-renderPipe…
Browse files Browse the repository at this point in the history
…lineAsset-with-defaultRenderPipeline

Unity6でGraphicsSettings.renderPipelineAssetがObsolete警告を出すのに対応
  • Loading branch information
ousttrue authored Feb 3, 2025
2 parents 6ba0037 + bb6ee3e commit a6595a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Assets/VRM/Editor/BuildClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ public static void Build()

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()
Expand Down

0 comments on commit a6595a9

Please sign in to comment.