Beispiel #1
0
        private static void DrawCreateSplineGUI()
        {
            string label = "6. Create Roads, Ramps, Rivers, etc.";
            string id    = "wizard-spline";

            GEditorCommon.Foldout(label, false, id, () =>
            {
                EditorGUILayout.LabelField("Use Spline Tool to paint roads, make ramps and riverbeds, etc.", GEditorCommon.WordWrapLeftLabel);
                if (GUILayout.Button("Create Spline Tool"))
                {
                    GSplineCreator spline = GWizard.CreateSplineTool();
                    EditorGUIUtility.PingObject(spline);
                    Selection.activeGameObject = spline.gameObject;
                }
            });
        }