Skip to content

GetZoom

Read zoom from the current render or game view.

GetZoom()

Inputs: None.

Output: Current camera zoom, or nil when no camera is available. A capture-only render pass returns 0.

Errors and unavailable states: Returns nil when the game camera cannot be read; a capture-only pass returns 0. This call has no reported Lua error.

See Rendering overview for coordinate and color conventions.