Vector2 Size { get; set; }

robot_2Generated
code_blocksInput

Description

The Size property of the SceneCamera class represents the dimensions of the screen. This property is crucial for determining the aspect ratio of the camera's view. The Size is automatically updated during the rendering process, ensuring that it reflects the current screen dimensions accurately.

Usage

Use the Size property to access or modify the screen dimensions of the SceneCamera. This can be useful when you need to calculate the aspect ratio or adjust the camera's view based on the screen size.

Example

// Example of accessing the Size property
SceneCamera camera = new SceneCamera();
Vector2 screenSize = camera.Size;

// Example of setting the Size property
camera.Size = new Vector2(1920, 1080);