Documentation

Unity Engine

Download Unity

Unity Engine

slopeRange

Paint only where the slope, in degrees, lies within [x, y]. [0, 90] by default.
Read time 1 minuteLast updated 22 days ago

Definition

public Vector2 slopeRange { get; set; }

Remarks

The slope is the angle of the height gradient, estimated from the heights one heightmap cell away on each side (one-sided at the edges of the Terrain). At a heightmap sample this is the central difference of its neighbors.