Skip to content

Commit 5780fed

Browse files
committed
Fix compile issues for Unity 2023.2
1 parent 6e2e243 commit 5780fed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Assets/Scripts/Editor/BuildScript.cs

+2
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,10 @@ public static void Build(string[] args)
189189
{
190190
#if UNITY_2023_2_OR_NEWER
191191
graphicsAPIs.Add(GraphicsDeviceType.WebGPU);
192+
#if UNITY_6000_0_OR_NEWER
192193
// Enable wasm2023 for WebGPU, since if webGPU is supported everything from 2023 is supported as well
193194
PlayerSettings.WebGL.wasm2023 = true;
195+
#endif
194196
#else
195197
LogError("WebGPU not supported yet");
196198
#endif

0 commit comments

Comments
 (0)