Description
The OrthographicHeight
property of the CameraComponent
class specifies the orthographic size of the camera when the Orthographic
property is set to true
. This property is used to determine the height of the camera's view in world units when using an orthographic projection.
Usage
To use the OrthographicHeight
property, ensure that the Orthographic
property of the CameraComponent
is set to true
. Then, set the OrthographicHeight
to the desired size in world units. This will adjust the camera's view height accordingly.
Example
// Assuming 'cameraComponent' is an instance of CameraComponent
cameraComponent.Orthographic = true;
cameraComponent.OrthographicHeight = 10.0f; // Set the orthographic height to 10 world units