TerrainLayerPaintRule
One rule of TerrainEditUtility.PaintLayers: paint a layer where the height and the slope lie in their ranges.
Read time 1 minuteLast updated 22 days ago
Definition
- Type: Class
- Namespace: UnityEditor.TerrainTools
- Assembly: UnityEditor
public sealed class TerrainLayerPaintRule
Constructors
Constructor | Description |
|---|---|
| TerrainLayerPaintRule(System.Int32) | Creates a rule that paints a layer everywhere in the region at full opacity. |
Properties
Property | Description |
|---|---|
| heightRange | Paint only where the height, in meters above the base of the Terrain, lies within [x, y]. Unbounded by default. |
| layerIndex | The index of the layer in TerrainData.terrainLayers. |
| opacity | The opacity, from 0 to 1. See TerrainLayerBlendMode. 1 by default. |
| slopeRange | Paint only where the slope, in degrees, lies within [x, y]. [0, 90] by default. |