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.

FieldOfViewMode

FieldOfViewMode controls which field-of-view (FOV) measurement the Camera treats as invariant when the viewport dimensions change. When the viewport is resized, the engine recalculates the other FOV values to keep the chosen axis constant. Used by FieldOfViewMode, which defaults to FieldOfViewMode.Vertical.

Items

NameValueDescription
Vertical0The camera holds its vertical field of view constant when the viewport is resized.
Diagonal1The camera holds its diagonal field of view constant when the viewport is resized.
MaxAxis2The camera holds the field of view along the longer viewport axis constant when the viewport is resized.

Vertical

The camera holds its vertical field of view constant when the viewport is resized.

FieldValue
value0

Diagonal

The camera holds its diagonal field of view constant when the viewport is resized.

FieldValue
value1

MaxAxis

The camera holds the field of view along the longer viewport axis constant when the viewport is resized.

FieldValue
value2