ITagSet ExcludeTags { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The ExcludeTags property of the SceneCamera class is used to specify a set of tags. Scene objects that have any of these tags will not be rendered by this camera. This allows for selective rendering, where certain objects can be excluded from the camera's view based on their tags.

Usage

To use the ExcludeTags property, you can assign it a set of tags that you want to exclude from rendering. This is useful in scenarios where you want to optimize rendering performance by not drawing certain objects or when you want to create specific visual effects by excluding certain elements from the scene.

Example

// Example of setting ExcludeTags for a SceneCamera
SceneCamera camera = new SceneCamera();

// Create a tag set and add tags to exclude
ITagSet excludeTags = new TagSet();
excludeTags.Add("Enemy");
excludeTags.Add("Background");

// Assign the tag set to the camera's ExcludeTags property
camera.ExcludeTags = excludeTags;

// Now, any scene object with the "Enemy" or "Background" tag will not be rendered by this camera.