docs.unity3d.com
Search Results for

    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, int, Terrain, IOnSceneGUI)
    IBrushController.OnInspectorGUI(Terrain, IOnInspectorGUI)
    IBrushController.OnPaint(Terrain, IOnPaint)
    IBrushController.AppendBrushInfo(Terrain, IOnSceneGUI, StringBuilder)
    Namespace: UnityEditor.TerrainTools
    Assembly: Unity.TerrainTools.Editor.dll
    Syntax
    public interface IBrushScatterController : IBrushController

    Properties

    brushScatter

    Gets the brush's scatter value.

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

    Methods

    RequestRandomisation()

    Randomizes the brush location for scattering.

    Declaration
    void RequestRandomisation()

    ScatterBrushStamp(Vector2, float)

    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.

    float brushSize

    The size of the brush.

    Returns
    Type Description
    Vector2

    Returns the new scattered UV location.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)