diff --git a/Runtime/CustomDrawer/GroupAttribute.cs b/Runtime/CustomDrawer/GroupAttribute.cs index 6edeb7d..52e6131 100644 --- a/Runtime/CustomDrawer/GroupAttribute.cs +++ b/Runtime/CustomDrawer/GroupAttribute.cs @@ -20,6 +20,7 @@ namespace XericLibrary.Runtime.CustomDrawer } } +#if UNITY_EDITOR /// /// 使用分组功能的示例 @@ -52,4 +53,6 @@ namespace XericLibrary.Runtime.CustomDrawer editor.serializedObject.ApplyModifiedProperties(); } } + +#endif } \ No newline at end of file diff --git a/Runtime/MicroLibrary/MacroList.cs b/Runtime/MicroLibrary/MacroList.cs index 209c1fd..b29e66f 100644 --- a/Runtime/MicroLibrary/MacroList.cs +++ b/Runtime/MicroLibrary/MacroList.cs @@ -1,4 +1,4 @@ -using Codice.CM.Triggers; + using System; using System.Collections; diff --git a/Runtime/MicroLibrary/MacroSmooth.cs b/Runtime/MicroLibrary/MacroSmooth.cs index c0a1d91..7ba0ddc 100644 --- a/Runtime/MicroLibrary/MacroSmooth.cs +++ b/Runtime/MicroLibrary/MacroSmooth.cs @@ -1,4 +1,4 @@ -using Codice.Client.BaseCommands.BranchExplorer; + using System; using System.Collections; diff --git a/Runtime/Type/Base/Bool1.cs b/Runtime/Type/Base/Bool1.cs index 54fe9d0..54c96b9 100644 --- a/Runtime/Type/Base/Bool1.cs +++ b/Runtime/Type/Base/Bool1.cs @@ -1,6 +1,9 @@ using System.Collections; using System.Collections.Generic; + +#if UNITY_EDITOR using UnityEditor; +#endif using UnityEngine; @@ -39,6 +42,7 @@ namespace XericLibrary.Runtime.Type #endregion } +#if UNITY_EDITOR [CustomPropertyDrawer(typeof(Bool1))] public class Bool1DDrawer : PropertyDrawer @@ -63,4 +67,5 @@ namespace XericLibrary.Runtime.Type EditorGUI.EndProperty(); } } +#endif } diff --git a/Runtime/Type/Base/Bool3.cs b/Runtime/Type/Base/Bool3.cs index 01aeb2d..eb97c28 100644 --- a/Runtime/Type/Base/Bool3.cs +++ b/Runtime/Type/Base/Bool3.cs @@ -1,7 +1,10 @@ using System; using System.Collections; using System.Collections.Generic; + +#if UNITY_EDITOR using UnityEditor; +#endif using UnityEngine; @@ -67,6 +70,7 @@ namespace XericLibrary.Runtime.Type #endregion } +#if UNITY_EDITOR [CustomPropertyDrawer(typeof(Bool3))] public class Bool3DDrawer : PropertyDrawer @@ -113,4 +117,5 @@ namespace XericLibrary.Runtime.Type EditorGUI.EndProperty(); } } +#endif } diff --git a/package.json b/package.json index 5933e0a..e65a069 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "com.lrss3.xericlibrary", "displayName": "Xeric Library", - "version": "0.2.415", + "version": "0.2.416", "unity": "2021.3", "description": "\u901a\u7528\u5e93\u63d2\u4ef6\u3002" } \ No newline at end of file