Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 69f6e31cf1 | |||
| 3ffef8d1b2 | |||
| a9763b033d | |||
| 2b40c3d26e | |||
| f7c1017567 | |||
| 301cb4b12c | |||
| fe02e0fd1e |
+2
-4
@@ -27,9 +27,8 @@ namespace MackySoft.SerializeReferenceExtensions.Editor
|
||||
{
|
||||
Type[] interfaceTypes = type.GetInterfaces();
|
||||
|
||||
foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
|
||||
{
|
||||
foreach (Type drawerType in assembly.GetTypes())
|
||||
var types = TypeCache.GetTypesWithAttribute<CustomPropertyDrawer>();
|
||||
foreach (Type drawerType in types)
|
||||
{
|
||||
var customPropertyDrawerAttributes = drawerType.GetCustomAttributes(typeof(CustomPropertyDrawer), true);
|
||||
foreach (CustomPropertyDrawer customPropertyDrawer in customPropertyDrawerAttributes)
|
||||
@@ -75,7 +74,6 @@ namespace MackySoft.SerializeReferenceExtensions.Editor
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
+6
@@ -56,7 +56,13 @@ namespace MackySoft.SerializeReferenceExtensions.Editor
|
||||
{
|
||||
Rect foldoutRect = new Rect(position);
|
||||
foldoutRect.height = EditorGUIUtility.singleLineHeight;
|
||||
|
||||
#if UNITY_2022_2_OR_NEWER
|
||||
// NOTE: Position x must be adjusted.
|
||||
// FIXME: Is there a more essential solution...?
|
||||
foldoutRect.x -= 12;
|
||||
#endif
|
||||
|
||||
property.isExpanded = EditorGUI.Foldout(foldoutRect, property.isExpanded, GUIContent.none, true);
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "com.mackysoft.serializereference-extensions",
|
||||
"displayName": "SerializeReference Extensions",
|
||||
"author": { "name": "MackySoft", "url": "https://github.com/mackysoft" },
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"unity": "2021.3",
|
||||
"description": "Provide popup to specify the type of the field serialized by the [SerializeReference] attribute in the inspector.",
|
||||
"keywords": [ "SerializeReference", "Editor" ],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"com.unity.ide.rider": "3.0.24",
|
||||
"com.unity.ide.visualstudio": "2.0.18",
|
||||
"com.unity.ide.rider": "3.0.28",
|
||||
"com.unity.ide.visualstudio": "2.0.22",
|
||||
"com.unity.ide.vscode": "1.2.5",
|
||||
"com.unity.test-framework": "1.1.33",
|
||||
"com.unity.modules.ai": "1.0.0",
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"url": "https://packages.unity.com"
|
||||
},
|
||||
"com.unity.ide.rider": {
|
||||
"version": "3.0.24",
|
||||
"version": "3.0.28",
|
||||
"depth": 0,
|
||||
"source": "registry",
|
||||
"dependencies": {
|
||||
@@ -17,7 +17,7 @@
|
||||
"url": "https://packages.unity.com"
|
||||
},
|
||||
"com.unity.ide.visualstudio": {
|
||||
"version": "2.0.18",
|
||||
"version": "2.0.22",
|
||||
"depth": 0,
|
||||
"source": "registry",
|
||||
"dependencies": {
|
||||
|
||||
@@ -18,6 +18,7 @@ The `SubclassSelector` attribute allows you to easily set subclasses of those ab
|
||||
- **[New]** Available `CustomPropertyDrawer` for subclasses.
|
||||
- **[New]** Restore values of previous object from JSON when subclass is changed. (required Unity 2021.3 or later)
|
||||
- **[New]** Copy & Paste the subclass properties. (required Unity 2021.3 or later)
|
||||
- **[New]** Clear & reset the subclass properties. (required Unity 2021.3 or later)
|
||||
|
||||
> See below for the reason for the limitation of versions less than Unity 2021.3.
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user