public override void OnGUI(EditorGuiBase gui) { label = gui.textField("name", label); scale = gui.silder("scale", scale, 0f, 10f); bias = gui.silder("bias", bias, -5f, 5f); curve = gui.curve("curve", curve); }
public override void OnGUI(EditorGuiBase gui) { label = gui.textField("name", label); scale = gui.silder("scale", scale, 0f, 10f); bias = gui.silder("bias", bias, -5f, 5f); normalType = (NormalType)gui.enumPopup("normal type", normalType); height = gui.floatField("height", height); }
public override void OnGUI(EditorGuiBase gui) { label = gui.textField("name", label); scale = gui.silder("scale", scale, 0f, 10f); bias = gui.silder("bias", bias, -5f, 5f); localSeed = gui.intField("local seed", localSeed); size = gui.floatField("size", size); octaveCount = gui.intSlider("octaveCount", octaveCount, 1, (int)Mathf.Log(size, 2) + 2); curve = gui.curve("curve", curve); }
public override void OnGUI(EditorGuiBase gui) { label = gui.textField("name", label); scale = gui.silder("scale", scale, 0f, 10f); bias = gui.silder("bias", bias, -5f, 5f); //treeIndex = gui.layoutIntField("tree index", treeIndex); //texture = (Texture2D)EditorGUILayout.ObjectField("Texture", texture, typeof(Texture2D), true); doTreeGUI(gui, false); density = gui.floatField("density", density); }
public override void OnGUI(EditorGuiBase gui) { label = gui.textField("name", label); scale = gui.silder("scale", scale, 0f, 10f); bias = gui.silder("bias", bias, -5f, 5f); //grassIndex = gui.layoutIntField("grass index", grassIndex); texture = (Texture2D)gui.objectField(texture, typeof(Texture2D), true); texturePath = gui.getAssetPath(texture); doTextureGUI(gui); }
public override void OnGUI(EditorGuiBase gui) { label = gui.textField("name", label); scale = gui.silder("scale", scale, 0f, 10f); bias = gui.silder("bias", bias, -5f, 5f); paintOrder = gui.intField("paint order", paintOrder); //texture = (Texture2D)EditorGUILayout.ObjectField("Texture", texture, typeof(Texture2D), true); //texturePath = gui.getAssetPath(texture); doTextureGUI(gui); }
public override void OnGUI(EditorGuiBase gui) { label = gui.textField("name", label); value = gui.silder("value", value, 0f, 1f); bPublic = gui.toggle("public", bPublic); }