MegaCylindrifyWarpEditor.cs 731 B

12345678910111213141516171819202122
  1. using UnityEditor;
  2. [CanEditMultipleObjects, CustomEditor(typeof(MegaCylindrifyWarp))]
  3. public class MegaCylindrifyWarpEditor : MegaWarpEditor
  4. {
  5. [MenuItem("GameObject/Create Other/MegaFiers/Warps/Cylindrify")]
  6. static void CreateStarShape() { CreateWarp("Cylindrify", typeof(MegaCylindrifyWarp)); }
  7. public override bool Inspector()
  8. {
  9. MegaCylindrifyWarp mod = (MegaCylindrifyWarp)target;
  10. #if !UNITY_5 && !UNITY_2017 && !UNITY_2018 && !UNITY_2019 && !UNITY_2020
  11. EditorGUIUtility.LookLikeControls();
  12. #endif
  13. mod.Percent = EditorGUILayout.FloatField("Percent", mod.Percent);
  14. mod.Decay = EditorGUILayout.FloatField("Decay", mod.Decay);
  15. mod.axis = (MegaAxis)EditorGUILayout.EnumPopup("Axis", mod.axis);
  16. return false;
  17. }
  18. }