Documentation

Unity Engine

Download Unity

Unity Engine

TerrainPaintSettings

Settings for TerrainEditUtility.PaintLayers.
Read time 1 minuteLast updated 22 days ago

Definition

public sealed class TerrainPaintSettings

Constructors

Constructor

Description

TerrainPaintSettings()Creates settings that blend with a hard edge and no dominant layer filter.

Properties

Property

Description

blendModeHow the rules change the layer weights. TerrainLayerBlendMode.Blend by default.
dominantLayerExpansionThe distance in meters by which to grow the area that TerrainPaintSettings.dominantLayerFilter selects, measured as the Euclidean distance between alphamap texels. 0 by default.
dominantLayerFilterWhen set, paint only texels whose dominant layer before painting (the layer with the highest weight) is one of these layer indices. Null by default.
falloffThe fraction of the region, from 0 to 1, over which the paint fades at its edge. See TerrainRegion.GetWeight.