public override void OnInspectorGUI() { base.OnInspectorGUI(); EditorGUILayout.HelpBox("Component deprecated. Press upgrade button to automatically convert it.", MessageType.Warning); if (GUILayout.Button("Upgrade", GUILayout.Height(30f))) { HighlightingUpgrade.Upgrade((target as MonoBehaviour).transform); } }
static private void Initialize() { HighlightingUpgrade window = EditorWindow.GetWindow <HighlightingUpgrade>(); window.Show(); }