BackgroundEditor.cs 508 B

1234567891011121314151617181920
  1. using UnityEditor;
  2. using XCharts.Runtime;
  3. namespace XCharts.Editor
  4. {
  5. [ComponentEditor(typeof(Background))]
  6. internal sealed class BackgroundEditor : MainComponentEditor<Background>
  7. {
  8. public override void OnInspectorGUI()
  9. {
  10. ++EditorGUI.indentLevel;
  11. PropertyField("m_Image");
  12. PropertyField("m_ImageType");
  13. PropertyField("m_ImageColor");
  14. PropertyField("m_AutoColor");
  15. --EditorGUI.indentLevel;
  16. }
  17. }
  18. }