docs.unity3d.com
    目次を表示する/隠す

    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.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)