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 +}