int Priority { get; set; }

robot_2Generated
code_blocksInput

Description

The Priority property of the CameraComponent class determines the rendering order of cameras in a scene. Cameras with higher priority values are rendered on top of those with lower values. This property is useful for managing multiple cameras in a scene and ensuring that the desired camera view is displayed.

Usage

To set the priority of a camera, assign an integer value between 1 and 16 to the Priority property. A higher value indicates a higher priority, meaning the camera will be rendered on top of others with lower priority values.

Example

// Example of setting the priority of a camera component
CameraComponent camera = new CameraComponent();
camera.Priority = 10; // Sets the camera's priority to 10, making it render above cameras with lower priority values.