public override void OnInspectorGUI(Terrain terrain, IOnInspectorGUI editContext) { base.OnInspectorGUI(terrain, editContext); m_BrushStrength.DrawInspectorGUI(); if (m_BrushStrength.expanded) { EditorGUI.indentLevel++; m_JitterHandler.OnGuiLayout("Allow random variation of brush intensity"); EditorGUI.indentLevel--; } }
public override void OnInspectorGUI(Terrain terrain, IOnInspectorGUI editContext) { base.OnInspectorGUI(terrain, editContext); // If size randomization is on, we use the min-max slider, otherwise, just a normal one. m_BrushSize.DrawInspectorGUI(); if (m_BrushSize.expanded) { EditorGUI.indentLevel++; m_JitterHandler.OnGuiLayout("Allow random variation of brush size"); EditorGUI.indentLevel--; } }
public override void OnInspectorGUI(Terrain terrain, IOnInspectorGUI editContext) { base.OnInspectorGUI(terrain, editContext); m_BrushRotation.DrawInspectorGUI(); if (m_BrushRotation.expanded) { EditorGUI.indentLevel++; m_JitterHandler.OnGuiLayout("Randomly vary the brush rotation between the values in the slider."); if (m_JitterHandler.smoothJitter) { m_SmoothJitterFreq.DrawInspectorGUI(); } EditorGUI.indentLevel--; } UpdateCurrentRotation(m_BrushRotation.value); }