TerrainPaintSettings
Settings for TerrainEditUtility.PaintLayers.
Read time 1 minuteLast updated 22 days ago
Definition
- Type: Class
- Namespace: UnityEditor.TerrainTools
- Assembly: UnityEditor
public sealed class TerrainPaintSettings
Constructors
Constructor | Description |
|---|---|
| TerrainPaintSettings() | Creates settings that blend with a hard edge and no dominant layer filter. |
Properties
Property | Description |
|---|---|
| blendMode | How the rules change the layer weights. TerrainLayerBlendMode.Blend by default. |
| dominantLayerExpansion | The distance in meters by which to grow the area that TerrainPaintSettings.dominantLayerFilter selects, measured as the Euclidean distance between alphamap texels. 0 by default. |
| dominantLayerFilter | When set, paint only texels whose dominant layer before painting (the layer with the highest weight) is one of these layer indices. Null by default. |
| falloff | The fraction of the region, from 0 to 1, over which the paint fades at its edge. See TerrainRegion.GetWeight. |