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
| Parameter | Type |
|---|---|
scene | Scene | null |
camera | CameraComponent |
viewportWidth | number |
viewportHeight | number |
Returns
number