Interface IBrushScatterController
An interface that represent the controller for scattering the brush.
Inherited Members
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; }
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. |