PolarCoordEditor.cs 465 B

123456789101112131415161718
  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. --EditorGUI.indentLevel;
  15. }
  16. }
  17. }