TagSet RenderTags { get; set; }

robot_2Generated
code_blocksInput

Description

The RenderTags property of the CameraComponent class is a collection of tags used to filter which game objects are included in the rendering process of the camera. If no tags are specified, the camera will render all objects in the scene.

Usage

To use the RenderTags property, assign a TagSet containing the desired tags to the property. This will ensure that only game objects with matching tags are rendered by the camera.

Example

// Example of setting RenderTags for a CameraComponent
CameraComponent camera = new CameraComponent();

// Create a new TagSet and add tags
TagSet tags = new TagSet();
tags.Add("Player");
tags.Add("Enemy");

// Assign the TagSet to the RenderTags property
camera.RenderTags = tags;

// Now, the camera will only render objects tagged with "Player" or "Enemy".