MegaSpherifyEditor.cs 706 B

12345678910111213141516171819202122
  1. using UnityEngine;
  2. using UnityEditor;
  3. [CanEditMultipleObjects, CustomEditor(typeof(MegaSpherify))]
  4. public class MegaSpherifyEditor : MegaModifierEditor
  5. {
  6. public override string GetHelpString() { return "Spherify Modifier by Chris West"; }
  7. //public override Texture LoadImage() { return (Texture)EditorGUIUtility.LoadRequired("bend_help.png"); }
  8. public override bool Inspector()
  9. {
  10. MegaSpherify mod = (MegaSpherify)target;
  11. #if !UNITY_5 && !UNITY_2017 && !UNITY_2018 && !UNITY_2019 && !UNITY_2020
  12. EditorGUIUtility.LookLikeControls();
  13. #endif
  14. mod.percent = EditorGUILayout.FloatField("Percent", mod.percent);
  15. mod.FallOff = EditorGUILayout.FloatField("FallOff", mod.FallOff);
  16. return false;
  17. }
  18. }