去除或阻塞编辑器

This commit is contained in:
2023-12-08 10:41:31 +08:00
parent 1f920a465f
commit 4750ddc910
6 changed files with 16 additions and 3 deletions
+3
View File
@@ -20,6 +20,7 @@ namespace XericLibrary.Runtime.CustomDrawer
}
}
#if UNITY_EDITOR
/// <summary>
/// ʹÓ÷Ö×鹦ÄܵÄʾÀý
@@ -52,4 +53,6 @@ namespace XericLibrary.Runtime.CustomDrawer
editor.serializedObject.ApplyModifiedProperties();
}
}
#endif
}
+1 -1
View File
@@ -1,4 +1,4 @@
using Codice.CM.Triggers;
using System;
using System.Collections;
+1 -1
View File
@@ -1,4 +1,4 @@
using Codice.Client.BaseCommands.BranchExplorer;
using System;
using System.Collections;
+5
View File
@@ -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
}
+5
View File
@@ -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
}
+1 -1
View File
@@ -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"
}