コード例 #1
0
        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);
            }
        }
コード例 #2
0
        static private void Initialize()
        {
            HighlightingUpgrade window = EditorWindow.GetWindow <HighlightingUpgrade>();

            window.Show();
        }