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

    Class DefaultBrushSmoother

    Inheritance
    Object
    DefaultBrushSmoother
    Namespace: UnityEditor.Experimental.TerrainAPI
    Syntax
    public class DefaultBrushSmoother : IBrushSmoothController

    Constructors

    DefaultBrushSmoother(String)

    Declaration
    public DefaultBrushSmoother(string name)
    Parameters
    Type Name Description
    String name

    Properties

    active

    Declaration
    public bool active { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IBrushSmoothController.active

    kernelSize

    Declaration
    public int kernelSize { get; set; }
    Property Value
    Type Description
    Int32
    Implements
    IBrushSmoothController.kernelSize

    Methods

    OnEnterToolMode()

    Declaration
    public void OnEnterToolMode()
    Implements
    IBrushSmoothController.OnEnterToolMode()

    OnExitToolMode()

    Declaration
    public void OnExitToolMode()
    Implements
    IBrushSmoothController.OnExitToolMode()

    OnInspectorGUI(Terrain, IOnInspectorGUI)

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

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

    Declaration
    public bool OnPaint(Terrain terrain, IOnPaint editContext, float brushSize, float brushRotation, float brushStrength, Vector2 uv)
    Parameters
    Type Name Description
    Terrain terrain
    IOnPaint editContext
    Single brushSize
    Single brushRotation
    Single brushStrength
    Vector2 uv
    Returns
    Type Description
    Boolean
    Implements
    IBrushSmoothController.OnPaint(Terrain, IOnPaint, Single, Single, Single, Vector2)

    OnSceneGUI(Terrain, IOnSceneGUI)

    Declaration
    public void OnSceneGUI(Terrain terrain, IOnSceneGUI editContext)
    Parameters
    Type Name Description
    Terrain terrain
    IOnSceneGUI editContext
    Implements
    IBrushSmoothController.OnSceneGUI(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