public override void OnMainGUI(EditorGuiBase gui) { bShowInMain = gui.foldout(bShowInMain, label); if (bShowInMain) { doTextureGUI(gui); } }
public override void OnMainGUI(EditorGuiBase gui) { //grassIndex = gui.layoutIntField("index of " + label, grassIndex); //texture = (Texture2D)EditorGUILayout.ObjectField("Texture", texture, typeof(Texture2D), true); //texturePath = gui.getAssetPath(texture); bShowInMain = gui.foldout(bShowInMain, label); if (bShowInMain) { doTextureGUI(gui); } }
public override void OnMainGUI(EditorGuiBase gui) { //treeIndex = gui.layoutIntField("index of " + label, treeIndex); //texture = (Texture2D)EditorGUILayout.ObjectField(name, texture, typeof(Texture2D), true); bShowInMain = gui.foldout(bShowInMain, label); if (bShowInMain) { doTreeGUI(gui, true); gui.beginH(); { //EditorGUILayout.LabelField("", GUILayout.Width(10)); gui.labelField("", 10); density = gui.floatField("density of " + label, density); } gui.endH(); } }