using UnityEngine; using UnityEditor; [CanEditMultipleObjects, CustomEditor(typeof(MegaSpherifyWarp))] public class MegaSpherifyWarpEditor : MegaWarpEditor { [MenuItem("GameObject/Create Other/MegaFiers/Warps/Spherify")] static void CreateStarShape() { CreateWarp("Spherify", typeof(MegaSpherifyWarp)); } public override string GetHelpString() { return "Spherify Warp Modifier by Chris West"; } //public override Texture LoadImage() { return (Texture)EditorGUIUtility.LoadRequired("bend_help.png"); } public override bool Inspector() { MegaSpherifyWarp mod = (MegaSpherifyWarp)target; #if !UNITY_5 && !UNITY_2017 && !UNITY_2018 && !UNITY_2019 && !UNITY_2020 EditorGUIUtility.LookLikeControls(); #endif mod.percent = EditorGUILayout.FloatField("Percent", mod.percent); mod.FallOff = EditorGUILayout.FloatField("FallOff", mod.FallOff); return false; } }