Beispiel #1
0
        private static void DrawUtilitiesGUI()
        {
            string label = "8. Utilities";
            string id    = "wizard-utilities";

            GEditorCommon.Foldout(label, false, id, () =>
            {
                GEditorCommon.Header("Wind Zone");
                EditorGUILayout.LabelField("Adding Wind Zone to customize how grass react to wind in this level.");
                if (GUILayout.Button("Create Wind Zone"))
                {
                    GWindZone wind = GWizard.CreateWindZone();
                    EditorGUIUtility.PingObject(wind.gameObject);
                    Selection.activeGameObject = wind.gameObject;
                }
            });
        }