Class TerrainToolGUIHelper | Terrain Tools | 3.0.2-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Class TerrainToolGUIHelper

    Inheritance
    Object
    TerrainToolGUIHelper
    Namespace: Global Namespace
    Syntax
    public static class TerrainToolGUIHelper

    Fields

    dontExpandWidth

    Declaration
    public static GUILayoutOption dontExpandWidth
    Field Value
    Type Description
    GUILayoutOption

    leftToolbarStyle

    Declaration
    public static GUIStyle leftToolbarStyle
    Field Value
    Type Description
    GUIStyle

    midToolbarActiveStyle

    Declaration
    public static GUIStyle midToolbarActiveStyle
    Field Value
    Type Description
    GUIStyle

    midToolbarStyle

    Declaration
    public static GUIStyle midToolbarStyle
    Field Value
    Type Description
    GUIStyle

    rightToolbarStyle

    Declaration
    public static GUIStyle rightToolbarStyle
    Field Value
    Type Description
    GUIStyle

    toolbarActiveStyle

    Declaration
    public static GUIStyle toolbarActiveStyle
    Field Value
    Type Description
    GUIStyle

    toolbarNormalStyle

    Declaration
    public static GUIStyle toolbarNormalStyle
    Field Value
    Type Description
    GUIStyle

    Methods

    DrawFoldout(Boolean, GUIContent, Action)

    Declaration
    public static bool DrawFoldout(bool expanded, GUIContent title, Action func)
    Parameters
    Type Name Description
    Boolean expanded
    GUIContent title
    Action func
    Returns
    Type Description
    Boolean

    DrawFoldout(SerializedProperty, GUIContent, Action)

    Declaration
    public static void DrawFoldout(SerializedProperty prop, GUIContent title, Action func)
    Parameters
    Type Name Description
    SerializedProperty prop
    GUIContent title
    Action func

    DrawHeaderFoldout(GUIContent, Boolean)

    Declaration
    public static bool DrawHeaderFoldout(GUIContent title, bool state)
    Parameters
    Type Name Description
    GUIContent title
    Boolean state
    Returns
    Type Description
    Boolean

    DrawHeaderFoldoutForBrush(GUIContent, Boolean, ResetBrush)

    Declaration
    public static bool DrawHeaderFoldoutForBrush(GUIContent title, bool state, ResetBrush resetMethod)
    Parameters
    Type Name Description
    GUIContent title
    Boolean state
    ResetBrush resetMethod
    Returns
    Type Description
    Boolean

    DrawHeaderFoldoutForErosion(GUIContent, Boolean, ResetTool)

    Declaration
    public static bool DrawHeaderFoldoutForErosion(GUIContent title, bool state, ResetTool resetMethod)
    Parameters
    Type Name Description
    GUIContent title
    Boolean state
    ResetTool resetMethod
    Returns
    Type Description
    Boolean

    DrawSimpleFoldout(GUIContent, Boolean, Int32, Single)

    Declaration
    public static bool DrawSimpleFoldout(GUIContent label, bool state, int indentLevel = 0, float width = 10F)
    Parameters
    Type Name Description
    GUIContent label
    Boolean state
    Int32 indentLevel
    Single width
    Returns
    Type Description
    Boolean

    DrawToggleFoldout(SerializedProperty, GUIContent, Action, Boolean)

    Declaration
    public static bool DrawToggleFoldout(SerializedProperty prop, GUIContent title, Action func, bool toggled)
    Parameters
    Type Name Description
    SerializedProperty prop
    GUIContent title
    Action func
    Boolean toggled
    Returns
    Type Description
    Boolean

    DrawToggleHeaderFoldout(GUIContent, Boolean, ref Boolean)

    Declaration
    public static bool DrawToggleHeaderFoldout(GUIContent title, bool state, ref bool enabled)
    Parameters
    Type Name Description
    GUIContent title
    Boolean state
    Boolean enabled
    Returns
    Type Description
    Boolean

    DrawToggleHeaderFoldout(GUIContent, Boolean, ref Boolean, Single)

    Declaration
    public static bool DrawToggleHeaderFoldout(GUIContent title, bool state, ref bool enabled, float padding)
    Parameters
    Type Name Description
    GUIContent title
    Boolean state
    Boolean enabled
    Single padding
    Returns
    Type Description
    Boolean

    GetToolbarToggleStyle(Boolean)

    Declaration
    public static GUIStyle GetToolbarToggleStyle(bool isToggled)
    Parameters
    Type Name Description
    Boolean isToggled
    Returns
    Type Description
    GUIStyle

    HorizontalFlagToolbar(GUIContent[], Int32[], Int32, GUILayoutOption[])

    Declaration
    public static int HorizontalFlagToolbar(GUIContent[] toolbarContent, int[] enumValues, int selection, params GUILayoutOption[] options)
    Parameters
    Type Name Description
    GUIContent[] toolbarContent
    Int32[] enumValues
    Int32 selection
    GUILayoutOption[] options
    Returns
    Type Description
    Int32

    MinMaxSlider(GUIContent, Single, ref Single, ref Single)

    Declaration
    public static float MinMaxSlider(GUIContent label, float value, ref float minValue, ref float maxValue)
    Parameters
    Type Name Description
    GUIContent label
    Single value
    Single minValue
    Single maxValue
    Returns
    Type Description
    Single

    MinMaxSliderInt(GUIContent, Int32, ref Int32, ref Int32)

    Declaration
    public static int MinMaxSliderInt(GUIContent label, int value, ref int minValue, ref int maxValue)
    Parameters
    Type Name Description
    GUIContent label
    Int32 value
    Int32 minValue
    Int32 maxValue
    Returns
    Type Description
    Int32
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023