Ejemplo n.º 1
0
        public override void ShowGUI(LevelEditor.EditorScripts.PrefabCollectionWindow window)
        {
            EditorGUILayout.BeginVertical();
            if (GUILayout.Button(preview, maxW, maxH))
            {
                window.SelectPrefab(this);
            }

            EditorGUILayout.BeginHorizontal(maxW, maxHButton);
            GUIStyle style = new GUIStyle(GUI.skin.button);

            if (GUILayout.Button(Style.ICON_EDIT, style, maxWButton, maxHButton))
            {
                window.Edit(this);
            }


            if (GUILayout.Button(Style.ICON_RELOAD, style, maxWButton, maxHButton))
            {
                window.Reload(this);
            }



            if (GUILayout.Button(Style.ICON_CLOSE, style, maxWButton, maxHButton))
            {
                window.DeletePrefab(this);
            }
            EditorGUILayout.EndHorizontal();
            EditorGUILayout.EndVertical();
        }
Ejemplo n.º 2
0
 public abstract void ShowGUI(LevelEditor.EditorScripts.PrefabCollectionWindow window);