Class DefaultBrushSmoother | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    Class DefaultBrushSmoother

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

    Constructors

    DefaultBrushSmoother(String)

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

    Properties

    active

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

    kernelSize

    Declaration
    public float kernelSize { get; set; }
    Property Value
    Type Description
    System.Single
    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
    System.Single brushSize
    System.Single brushRotation
    System.Single brushStrength
    Vector2 uv
    Returns
    Type Description
    System.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 © 2019 Unity Technologies
    Generated by DocFX