From e9df74ec3c2f5c264864f293713ffe3a501a1e29 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Fri, 22 Jan 2021 09:08:52 +0800 Subject: [PATCH] Fixed a `Inpsector` displayed error --- Assets/XCharts/CHANGELOG-EN.md | 1 + Assets/XCharts/CHANGELOG.md | 1 + Assets/XCharts/Editor/PropertyDrawers/AxisDrawer.cs | 2 -- Assets/XCharts/Editor/PropertyDrawers/BasePropertyDrawer.cs | 5 ----- Assets/XCharts/Editor/PropertyDrawers/TextLimitDrawer.cs | 3 +-- 5 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Assets/XCharts/CHANGELOG-EN.md b/Assets/XCharts/CHANGELOG-EN.md index 74581923..f490e901 100644 --- a/Assets/XCharts/CHANGELOG-EN.md +++ b/Assets/XCharts/CHANGELOG-EN.md @@ -1,6 +1,7 @@ # 更新日志 +* (2021.01.22) Fixed a `Inpsector` displayed error * (2021.01.21) Release `v2.0.0-preview.2` version * (2021.01.21) Fixed an error about `AxisTick` in `Inpsector` * (2021.01.21) Fixed a build compatibility error diff --git a/Assets/XCharts/CHANGELOG.md b/Assets/XCharts/CHANGELOG.md index 7b0ab8eb..ed5c4426 100644 --- a/Assets/XCharts/CHANGELOG.md +++ b/Assets/XCharts/CHANGELOG.md @@ -1,6 +1,7 @@ # 更新日志 +* (2021.01.22) 修复`Inpsector`上部分属性显示异常的问题 * (2021.01.21) 发布`v2.0.0-preview.2`版本 * (2021.01.21) 修复`Inpsector`上展开`AxisTick`时报错问题 * (2021.01.21) 修复打包兼容报错问题 diff --git a/Assets/XCharts/Editor/PropertyDrawers/AxisDrawer.cs b/Assets/XCharts/Editor/PropertyDrawers/AxisDrawer.cs index 01ac5b9f..70775991 100644 --- a/Assets/XCharts/Editor/PropertyDrawers/AxisDrawer.cs +++ b/Assets/XCharts/Editor/PropertyDrawers/AxisDrawer.cs @@ -138,8 +138,6 @@ namespace XCharts PropertyField(prop, "m_OnZero"); PropertyField(prop, "m_TextLimit"); PropertyField(prop, "m_TextStyle"); - PropertyField(prop, "m_OnZero"); - PropertyField(prop, "m_OnZero"); --EditorGUI.indentLevel; } } diff --git a/Assets/XCharts/Editor/PropertyDrawers/BasePropertyDrawer.cs b/Assets/XCharts/Editor/PropertyDrawers/BasePropertyDrawer.cs index 6883fcab..b7a43afd 100644 --- a/Assets/XCharts/Editor/PropertyDrawers/BasePropertyDrawer.cs +++ b/Assets/XCharts/Editor/PropertyDrawers/BasePropertyDrawer.cs @@ -100,11 +100,6 @@ namespace XCharts protected void PropertyField(SerializedProperty prop, string relativePropName) { if (IngorePropertys.Contains(relativePropName)) return; - if (prop.FindPropertyRelative(relativePropName).isArray) - { - PropertyListField(prop, relativePropName); - return; - } if (!ChartEditorHelper.PropertyField(ref m_DrawRect, m_Heights, m_KeyName, prop, relativePropName)) { Debug.LogError("PropertyField ERROR:" + prop.displayName + ", " + relativePropName); diff --git a/Assets/XCharts/Editor/PropertyDrawers/TextLimitDrawer.cs b/Assets/XCharts/Editor/PropertyDrawers/TextLimitDrawer.cs index eebdc47f..1710fe0f 100644 --- a/Assets/XCharts/Editor/PropertyDrawers/TextLimitDrawer.cs +++ b/Assets/XCharts/Editor/PropertyDrawers/TextLimitDrawer.cs @@ -5,7 +5,6 @@ /* */ /************************************************/ -using System.Collections.Generic; using UnityEditor; using UnityEngine; @@ -23,7 +22,7 @@ namespace XCharts ++EditorGUI.indentLevel; PropertyField(prop, "m_MaxWidth"); PropertyField(prop, "m_Gap"); - PropertyField(prop, "m_LimitSuffix"); + PropertyField(prop, "m_Suffix"); --EditorGUI.indentLevel; } }