SpatialImageInspector.cs 710 B

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