From 94cdfdb46adf7b2c73ecf962aaefeb3599973557 Mon Sep 17 00:00:00 2001 From: absences <49706424+absences@users.noreply.github.com> Date: Sat, 12 Oct 2024 15:18:25 +0800 Subject: [PATCH] fix error Assets\WX-WASM-SDK-V2\Runtime\WXRuntimeExtDef.cs(20,13): error CS0103: The name 'WXRuntimeExtEnvDef' does not exist in the current context --- Runtime/WXRuntimeExtDef.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Runtime/WXRuntimeExtDef.cs b/Runtime/WXRuntimeExtDef.cs index 5137e5aa..2eb22816 100644 --- a/Runtime/WXRuntimeExtDef.cs +++ b/Runtime/WXRuntimeExtDef.cs @@ -5,6 +5,7 @@ using UnityEngine; namespace WeChatWASM { +#if UNITY_EDITOR public class WXRuntimeExtDef { [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] @@ -129,5 +130,5 @@ namespace WeChatWASM }); } } - -} \ No newline at end of file +#endif +}