docs.unity.cn
    Show / Hide Table of Contents

    Interface IBrushScatterController

    An interface that represent the controller for scattering the brush.

    Inherited Members
    IBrushController.isInUse
    IBrushController.OnEnterToolMode(BrushShortcutHandler<BrushShortcutType>)
    IBrushController.OnExitToolMode(BrushShortcutHandler<BrushShortcutType>)
    IBrushController.OnSceneGUI(Event, Int32, Terrain, IOnSceneGUI)
    IBrushController.OnInspectorGUI(Terrain, IOnInspectorGUI)
    IBrushController.OnPaint(Terrain, IOnPaint)
    IBrushController.AppendBrushInfo(Terrain, IOnSceneGUI, StringBuilder)
    Namespace: UnityEditor.TerrainTools
    Syntax
    public interface IBrushScatterController : IBrushController

    Properties

    brushScatter

    Gets the brush's scatter value.

    Declaration
    float brushScatter { get; set; }
    Property Value
    Type Description
    Single

    Methods

    RequestRandomisation()

    Randomizes the brush location for scattering.

    Declaration
    void RequestRandomisation()

    ScatterBrushStamp(Vector2, Single)

    Gets the scatter brush stamp location

    Declaration
    Vector2 ScatterBrushStamp(Vector2 uv, float brushSize)
    Parameters
    Type Name Description
    Vector2 uv

    The UV location of the brush.

    Single brushSize

    The size of the brush.

    Returns
    Type Description
    Vector2

    Returns the new scattered UV location.

    Back to top Copyright © 2023 Unity Technologies
    Generated by DocFX
    on Wednesday, April 5, 2023
    Terms of use