Skip to content

Commit

Permalink
update platform check for older non-webgpu supported editors
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Grater <[email protected]>
  • Loading branch information
christing12 and BenGraterUnity authored Aug 31, 2023
1 parent 06f5392 commit 55f073f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -868,9 +868,13 @@ public static bool isWebNonWebGPU
{
#if UNITY_EDITOR
#if UNITY_WEBGL
#if UNITY_2023_2_OR_NEWER
return PlayerSettings.GetGraphicsAPIs(BuildTarget.WebGL)[0] != GraphicsDeviceType.WebGPU;
#else
return true;
#endif
#else
return false;
return false;
#endif
#else
return Application.platform == RuntimePlatform.WebGLPlayer
Expand Down

0 comments on commit 55f073f

Please sign in to comment.