MagicaDirectionalWindInspector.cs 714 B

12345678910111213141516171819202122232425262728
  1. // Magica Cloth.
  2. // Copyright (c) MagicaSoft, 2020-2022.
  3. // https://magicasoft.jp
  4. using UnityEditor;
  5. namespace MagicaCloth
  6. {
  7. /// <summary>
  8. /// グローバル方向風
  9. /// </summary>
  10. [CustomEditor(typeof(MagicaDirectionalWind))]
  11. public class MagicaDirectionalWindInspector : Editor
  12. {
  13. public override void OnInspectorGUI()
  14. {
  15. //DrawDefaultInspector();
  16. WindComponent scr = target as WindComponent;
  17. serializedObject.Update();
  18. Undo.RecordObject(scr, "WindComponent");
  19. EditorInspectorUtility.WindComponentInspector(scr, serializedObject);
  20. serializedObject.ApplyModifiedProperties();
  21. }
  22. }
  23. }