docs.unity3d.com
    Show / Hide Table of Contents

    Interface IBrushSmoothController

    An interface that represent the controller for smoothing the brush.

    Namespace: UnityEditor.TerrainTools
    Syntax
    public interface IBrushSmoothController

    Properties

    active

    Checks if the smooth controller is active.

    Declaration
    bool active { get; }
    Property Value
    Type Description
    Boolean

    kernelSize

    Gets and sets the smooth kernel size.

    Declaration
    int kernelSize { get; set; }
    Property Value
    Type Description
    Int32

    Methods

    OnEnterToolMode()

    Defines data when the brush is selected.

    Declaration
    void OnEnterToolMode()

    OnExitToolMode()

    Defines data when the brush is deselected.

    Declaration
    void OnExitToolMode()

    OnInspectorGUI(Terrain, IOnInspectorGUI)

    Declaration
    void OnInspectorGUI(Terrain terrain, IOnInspectorGUI editContext)
    Parameters
    Type Name Description
    Terrain terrain

    The terrain in focus.

    IOnInspectorGUI editContext

    The editcontext to reference.

    OnPaint(Terrain, IOnPaint, Single, Single, Single, Vector2)

    Triggers events when painting on a terrain.

    Declaration
    bool OnPaint(Terrain terrain, IOnPaint editContext, float brushSize, float brushRotation, float brushStrength, Vector2 uv)
    Parameters
    Type Name Description
    Terrain terrain

    The terrain in focus.

    IOnPaint editContext

    The editcontext to reference.

    Single brushSize

    The brush's size.

    Single brushRotation

    The brush's rotation.

    Single brushStrength

    The brush's strength.

    Vector2 uv

    The brush's UV.

    Returns
    Type Description
    Boolean

    Returns true when the painting process is successful. Otherwise, returns false.

    OnSceneGUI(Terrain, IOnSceneGUI)

    Triggers events to render objects and displays within Scene view.

    Declaration
    void OnSceneGUI(Terrain terrain, IOnSceneGUI editContext)
    Parameters
    Type Name Description
    Terrain terrain

    The terrain in focus.

    IOnSceneGUI editContext

    The editcontext to reference.

    Back to top
    Copyright © 2023 Unity Technologies
    • 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 Friday, November 3, 2023