float OrthographicHeight { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The OrthographicHeight property specifies the orthographic size of 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 affect how much of the scene is visible vertically through the camera.

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

// This will make the camera view 10 units high in world space when using orthographic projection.