SpatialButton_NormalZoomBGInspector.cs 794 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEditor;
  5. namespace EZXR.Glass.UI
  6. {
  7. [CustomEditor(typeof(SpatialButton_NormalZoomBG))]
  8. [CanEditMultipleObjects]
  9. public class SpatialButton_NormalZoomBGInspector : SpatialButtonNormalInspector
  10. {
  11. private SpatialButton_NormalZoomBG _target_SpatialButtonNormal;
  12. protected override void OnEnable()
  13. {
  14. base.OnEnable();
  15. _target_SpatialButtonNormal = target as SpatialButton_NormalZoomBG;
  16. }
  17. public override void OnInspectorGUI()
  18. {
  19. base.OnInspectorGUI();
  20. serializedObject.Update();
  21. serializedObject.ApplyModifiedProperties();
  22. SceneView.RepaintAll();
  23. }
  24. }
  25. }