コード例 #1
0
        void OnGUI()
        {
            if (manifest != null)
            {
                EditorGUILayout.LabelField("Package Configuration");
                manifest.name_space   = EditorGUILayout.TextField("Namespace: ", manifest.name_space);
                manifest.package_name = EditorGUILayout.TextField("Name: ", manifest.package_name);
                manifest.version      = EditorGUILayout.TextField("Version: ", manifest.version);
                manifest.displayName  = EditorGUILayout.TextField("Display name: ", manifest.displayName);

                EditorGUILayout.LabelField("Description");
                manifest.description = EditorGUILayout.TextArea(manifest.description, GUILayout.Height(EditorGUIUtility.singleLineHeight * 5));

                extendedUI.Draw(manifest);

                if (GUILayout.Button("Create"))
                {
                    OnClickCreate();
                }

                if (GUILayout.Button("Cancel"))
                {
                    Close();
                    GUIUtility.ExitGUI();
                }
            }
        }
コード例 #2
0
        void OnGUI()
        {
            if (manifest != null)
            {
                EditorGUILayout.LabelField("Display name: " + manifest.displayName);

                extendedUI.Draw(manifest);

                if (GUILayout.Button("Show in Inspector"))
                {
                    OnClickInspector();
                }

                if (GUILayout.Button("Apply"))
                {
                    OnClickUpdate();
                }

                if (GUILayout.Button("Cancel"))
                {
                    Exit();
                }
            }
        }