mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-16 13:30:10 +00:00
34 lines
943 B
C#
34 lines
943 B
C#
/******************************************/
|
|
/* */
|
|
/* Copyright (c) 2018 monitor1394 */
|
|
/* https://github.com/monitor1394 */
|
|
/* */
|
|
/******************************************/
|
|
|
|
using UnityEditor;
|
|
|
|
namespace XCharts
|
|
{
|
|
/// <summary>
|
|
/// Editor class used to edit UI LiquidChart.
|
|
/// </summary>
|
|
|
|
[CustomEditor(typeof(LiquidChart), false)]
|
|
public class LiquidChartEditor : BaseChartEditor
|
|
{
|
|
protected SerializedProperty m_Vessels;
|
|
|
|
protected override void OnEnable()
|
|
{
|
|
base.OnEnable();
|
|
m_Target = (LiquidChart)target;
|
|
m_Vessels = serializedObject.FindProperty("m_Vessels");
|
|
}
|
|
|
|
protected override void OnStartInspectorGUI()
|
|
{
|
|
base.OnStartInspectorGUI();
|
|
EditorGUILayout.PropertyField(m_Vessels, true);
|
|
}
|
|
}
|
|
} |