From 4750ddc910e5d6cfb09ce73ab4c5e4625c722dbe Mon Sep 17 00:00:00 2001 From: LiRuoChen <571244399@qq.com> Date: Fri, 8 Dec 2023 10:41:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=88=96=E9=98=BB=E5=A1=9E?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/CustomDrawer/GroupAttribute.cs | 3 +++ Runtime/MicroLibrary/MacroList.cs | 2 +- Runtime/MicroLibrary/MacroSmooth.cs | 2 +- Runtime/Type/Base/Bool1.cs | 5 +++++ Runtime/Type/Base/Bool3.cs | 5 +++++ package.json | 2 +- 6 files changed, 16 insertions(+), 3 deletions(-) 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