float OrthographicHeight { get; set; }

robot_2Generated
code_blocksInput

Description

The OrthographicHeight property specifies the orthographic size for the camera when the Orthographic property is set to true. This property is used to determine the vertical size 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 accordingly.

Example

// Example of setting the OrthographicHeight
CameraComponent camera = new CameraComponent();
camera.Orthographic = true; // Enable orthographic projection
camera.OrthographicHeight = 10.0f; // Set the orthographic height to 10 units