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

    Class DefaultBrushStrength

    Inheritance
    Object
    DefaultBrushStrength
    Namespace: UnityEditor.Experimental.TerrainAPI
    Syntax
    public class DefaultBrushStrength : IBrushStrengthController, IBrushController

    Constructors

    DefaultBrushStrength(String)

    Declaration
    public DefaultBrushStrength(string toolName)
    Parameters
    Type Name Description
    String toolName

    Properties

    brushStrength

    Declaration
    public float brushStrength { get; set; }
    Property Value
    Type Description
    Single
    Implements
    IBrushStrengthController.brushStrength

    isInUse

    Declaration
    public bool isInUse { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IBrushController.isInUse

    Methods

    AppendBrushInfo(Terrain, IOnSceneGUI, StringBuilder)

    Declaration
    public void AppendBrushInfo(Terrain terrain, IOnSceneGUI editContext, StringBuilder builder)
    Parameters
    Type Name Description
    Terrain terrain
    IOnSceneGUI editContext
    StringBuilder builder
    Implements
    IBrushController.AppendBrushInfo(Terrain, IOnSceneGUI, StringBuilder)

    OnEnterToolMode(BrushShortcutHandler<BrushShortcutType>)

    Declaration
    public void OnEnterToolMode(BrushShortcutHandler<BrushShortcutType> shortcutHandler)
    Parameters
    Type Name Description
    BrushShortcutHandler<BrushShortcutType> shortcutHandler
    Implements
    IBrushController.OnEnterToolMode(BrushShortcutHandler<BrushShortcutType>)

    OnExitToolMode(BrushShortcutHandler<BrushShortcutType>)

    Declaration
    public void OnExitToolMode(BrushShortcutHandler<BrushShortcutType> shortcutHandler)
    Parameters
    Type Name Description
    BrushShortcutHandler<BrushShortcutType> shortcutHandler
    Implements
    IBrushController.OnExitToolMode(BrushShortcutHandler<BrushShortcutType>)

    OnInspectorGUI(Terrain, IOnInspectorGUI)

    Declaration
    public void OnInspectorGUI(Terrain terrain, IOnInspectorGUI editContext)
    Parameters
    Type Name Description
    Terrain terrain
    IOnInspectorGUI editContext
    Implements
    IBrushController.OnInspectorGUI(Terrain, IOnInspectorGUI)

    OnPaint(Terrain, IOnPaint)

    Declaration
    public bool OnPaint(Terrain terrain, IOnPaint editContext)
    Parameters
    Type Name Description
    Terrain terrain
    IOnPaint editContext
    Returns
    Type Description
    Boolean
    Implements
    IBrushController.OnPaint(Terrain, IOnPaint)

    OnSceneGUI(Event, Int32, Terrain, IOnSceneGUI)

    Declaration
    public void OnSceneGUI(Event currentEvent, int controlId, Terrain terrain, IOnSceneGUI editContext)
    Parameters
    Type Name Description
    Event currentEvent
    Int32 controlId
    Terrain terrain
    IOnSceneGUI editContext
    Implements
    IBrushController.OnSceneGUI(Event, Int32, Terrain, IOnSceneGUI)
    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