public override void OnInspectorGUI(Terrain terrain, IOnInspectorGUI editContext)
        {
            base.OnInspectorGUI(terrain, editContext);

            m_BrushStrength.DrawInspectorGUI();
            m_JitterHandler.OnGuiLayout("Allow random variation of brush intensity");
        }
Esempio n. 2
0
        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();
            m_JitterHandler.OnGuiLayout("Allow random variation of brush size");
        }
        public override void OnInspectorGUI(Terrain terrain, IOnInspectorGUI editContext)
        {
            base.OnInspectorGUI(terrain, editContext);

            m_BrushRotation.DrawInspectorGUI();
            m_JitterHandler.OnGuiLayout("Randomly vary the brush rotation between the values in the slider.");
            if (m_JitterHandler.smoothJitter)
            {
                m_SmoothJitterFreq.DrawInspectorGUI();
            }

            //m_FollowMouse = EditorGUILayout.Toggle(styles.brushFollowMouse, m_FollowMouse, GUILayout.ExpandWidth(false));

            UpdateCurrentRotation(m_BrushRotation.value);
        }