CameraExtensions¶
Namespace:
SideXP.Core
Extension functions for Camera instances.
Methods¶
GetExtentsOrthographic(Camera)¶
Calculates the camera render extents, using orthographic mode. The extents are Vector2(orthographic size * aspect ratio, orthographic size). You can use this value to automatically define screen limits.
Parameters
camera: TheCameraof which you want to get the extents.
Returns
Returns the computed extents.
GetBoundsOrthographic(Camera)¶
Calculates the camera render extents using GetExtentsOrthographic and doubles them to get bounds, using orthographic mode.
Parameters
camera: TheCameraof which you want to get the bounds.
Returns
Returns the computed bounds.