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
| Name | Value | Description |
|---|---|---|
| Top | 0 | The top (+Y) face of a terrain voxel. |
| Side | 1 | The horizontal (side) faces of a terrain voxel, perpendicular to the Y axis. |
| Bottom | 2 | The bottom (-Y) face of a terrain voxel. |
Top
The top (+Y) face of a terrain voxel.
| Field | Value |
|---|---|
| value | 0 |
Side
The horizontal (side) faces of a terrain voxel, perpendicular to the Y axis.
| Field | Value |
|---|---|
| value | 1 |
Bottom
The bottom (-Y) face of a terrain voxel.
| Field | Value |
|---|---|
| value | 2 |