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 to the Priority property. The value should be within the range of 1 to 16, where 1 is the lowest priority and 16 is the highest. Adjusting this value allows you to control which camera's view is rendered on top when multiple cameras are present.

Example

// Example of setting the priority of a camera component
CameraComponent camera = new CameraComponent();
camera.Priority = 10; // Sets the camera's priority to 10, higher than default