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