private void DisplayHeightPropertyRandomButton(HeightLayerProperty heightLayerProperty)
 {
     heightLayerProperty.SetRandomized(GUIToggleButton(
                                           new GUIContent(baseSkin.FindStyle("RandomManualIcons").hover.background),
                                           new GUIContent(baseSkin.FindStyle("RandomManualIcons").normal.background),
                                           "This property is set to manual.",
                                           "This property is set to random.",
                                           heightLayerProperty.Randomized));
 }
 private void DisplayHeightPropertyVector3(string label, HeightLayerProperty heightLayerProperty)
 {
     using (new GUILayout.HorizontalScope(baseSkin.FindStyle("HeightLayerProperty")))
     {
         DisplayHeightPropertyRandomButton(heightLayerProperty);
         heightLayerProperty.SetVector3(GUIVector3Field(label, heightLayerProperty.Vector3));
         GUILayout.FlexibleSpace();
     }
 }
 public HeightLayerProps()
 {
     Frequency   = new HeightLayerProperty(4f);
     Amplitude   = new HeightLayerProperty(1f);
     Octaves     = new HeightLayerProperty((int)2);
     Lacunarity  = new HeightLayerProperty(2f);
     Persistance = new HeightLayerProperty(0.5f);
     Offset      = new HeightLayerProperty(Vector3.zero);
     Opacity     = 1f;
 }
 protected void DisplayHeightMinMaxIntFields(string label, int min, int max, HeightLayerProperty heightLayerProperty)
 {
     using (new GUILayout.HorizontalScope(baseSkin.FindStyle("HeightLayerProperty")))
     {
         DisplayHeightPropertyRandomButton(heightLayerProperty);
         using (new GUILayout.HorizontalScope(baseSkin.FindStyle("FieldValue")))
         {
             EditorGUILayout.LabelField(label, baseSkin.label);
             heightLayerProperty.IntMin = GUIMinMaxIntFieldPrefix("Min", heightLayerProperty.IntMin, min, heightLayerProperty.IntMax);
             heightLayerProperty.IntMax = GUIMinMaxIntFieldPrefix("Max", heightLayerProperty.IntMax, heightLayerProperty.IntMin, max);
             GUILayout.FlexibleSpace();
         }
     }
 }
 private void DisplayHeightPropertyIntMinMax(string label, int minValue, int maxValue, HeightLayerProperty heightLayerProperty)
 {
     using (new GUILayout.HorizontalScope(baseSkin.FindStyle("HeightLayerProperty")))
     {
         DisplayHeightPropertyRandomButton(heightLayerProperty);
         heightLayerProperty.SetInt(GUIMinMaxIntField(label, heightLayerProperty.Int, minValue, maxValue));
         GUILayout.FlexibleSpace();
     }
 }
 private void DisplayHeightPropertyFloatMinMax(string label, float min, float max, HeightLayerProperty heightLayerProperty)
 {
     using (new GUILayout.HorizontalScope(baseSkin.FindStyle("HeightLayerProperty")))
     {
         DisplayHeightPropertyRandomButton(heightLayerProperty);
         heightLayerProperty.SetFloat(GUIMinMaxFloatField(label, heightLayerProperty.Float, min, max));
         GUILayout.FlexibleSpace();
     }
 }