Firstborn/Library/PackageCache/com.unity.terrain-tools@4.0.3/Editor/TerrainTools/BrushControllers/IBrushScatterController.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

29 lines
879 B
C#

using UnityEngine;
namespace UnityEditor.TerrainTools
{
/// <summary>
/// An interface that represent the controller for scattering the brush.
/// </summary>
public interface IBrushScatterController : IBrushController
{
/// <summary>
/// Gets the brush's scatter value.
/// </summary>
float brushScatter { get; }
/// <summary>
/// Randomizes the brush location for scattering.
/// </summary>
void RequestRandomisation();
/// <summary>
/// Gets the scatter brush stamp location
/// </summary>
/// <param name="uv">The UV location of the brush.</param>
/// <param name="brushSize">The size of the brush.</param>
/// <returns>Returns the new scattered UV location.</returns>
Vector2 ScatterBrushStamp(Vector2 uv, float brushSize);
}
}