mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-24 18:00:26 +00:00
优化GaugeChart和RingChart的label初始化
This commit is contained in:
28
Assets/XCharts/Editor/RingChartEditor.cs
Normal file
28
Assets/XCharts/Editor/RingChartEditor.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
/******************************************/
|
||||
/* */
|
||||
/* Copyright (c) 2018 monitor1394 */
|
||||
/* https://github.com/monitor1394 */
|
||||
/* */
|
||||
/******************************************/
|
||||
|
||||
using UnityEditor;
|
||||
|
||||
namespace XCharts
|
||||
{
|
||||
/// <summary>
|
||||
/// Editor class used to edit UI RingChart.
|
||||
/// </summary>
|
||||
|
||||
[CustomEditor(typeof(RingChart), false)]
|
||||
public class RingChartEditor : BaseChartEditor
|
||||
{
|
||||
protected SerializedProperty m_Radar;
|
||||
protected SerializedProperty m_Radars;
|
||||
|
||||
protected override void OnEnable()
|
||||
{
|
||||
base.OnEnable();
|
||||
m_Target = (RingChart)target;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user