Skip to content

Function: ResolveCameraOrthoSize() ​

ts
function ResolveCameraOrthoSize(
   scene, 
   camera, 
   viewportWidth, 
   viewportHeight
): number;

The half-height a camera actually renders with in a viewportWidth × viewportHeight pixel viewport: a Fit Canvas camera follows its Canvas (reference size + scale mode), anything else uses its own orthographicSize. The engine, CameraMath and editor tools all go through this so they agree with what's drawn.

Parameters ​

ParameterType
sceneScene | null
cameraCameraComponent
viewportWidthnumber
viewportHeightnumber

Returns ​

number

© 2026 PlayAdGentic