Beispiel #1
0
        private static void DrawTerrainsManagementGUI()
        {
            string label = "2. Terrains Management";
            string id    = "wizard-terrains-management";

            GEditorCommon.Foldout(label, false, id, () =>
            {
                EditorGUILayout.LabelField(
                    "Edit properties of an individual terrain by selecting it and use the Inspector.",
                    GEditorCommon.WordWrapLeftLabel);
                EditorGUILayout.LabelField(
                    string.Format("Use context menus ({0}) in the terrain Inspector to perform additional tasks.", GEditorCommon.contextIconText),
                    GEditorCommon.WordWrapLeftLabel);
                EditorGUILayout.LabelField(
                    "Use the Group Tool to edit properties of multiple terrains at once.",
                    GEditorCommon.WordWrapLeftLabel);
                if (GUILayout.Button("Create Group Tool"))
                {
                    GTerrainGroup group = GWizard.CreateGroupTool();
                    EditorGUIUtility.PingObject(group);
                    Selection.activeGameObject = group.gameObject;
                }
            });
        }