1 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

TerrainFace

Identifies which face direction of a terrain voxel a TerrainDetail object targets. Terrain renders its top (+Y), side (horizontal), and bottom (-Y) faces independently; this enum lets each TerrainDetail child of a MaterialVariant declare which of those three surfaces it overrides.

Items

NameValueDescription
Top0The top (+Y) face of a terrain voxel.
Side1The horizontal (side) faces of a terrain voxel, perpendicular to the Y axis.
Bottom2The bottom (-Y) face of a terrain voxel.

Top

The top (+Y) face of a terrain voxel.

FieldValue
value0

Side

The horizontal (side) faces of a terrain voxel, perpendicular to the Y axis.

FieldValue
value1

Bottom

The bottom (-Y) face of a terrain voxel.

FieldValue
value2