Class DefaultBrushSmoother | Terrain Tools | 3.0.2-preview.3
docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX
    on 10 November 2020