PolarCoordEditor.cs 518 B

12345678910111213141516171819
  1. using UnityEditor;
  2. using XCharts.Runtime;
  3. namespace XCharts.Editor
  4. {
  5. [ComponentEditor(typeof(PolarCoord))]
  6. public class PolarCoordEditor : MainComponentEditor<PolarCoord>
  7. {
  8. public override void OnInspectorGUI()
  9. {
  10. ++EditorGUI.indentLevel;
  11. PropertyTwoFiled("m_Center");
  12. PropertyTwoFiled("m_Radius");
  13. PropertyField("m_BackgroundColor");
  14. PropertyField("m_IndicatorLabelOffset");
  15. --EditorGUI.indentLevel;
  16. }
  17. }
  18. }