TagSet SceneTags { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The SceneTags property of the SceneInformation class provides a set of tags associated with a scene. This property is useful for categorizing and organizing scenes within the Sandbox environment. Tags can be used to filter scenes or to apply specific logic based on the tags assigned to a scene.

Usage

To use the SceneTags property, you can access it directly from an instance of the SceneInformation class. You can add, remove, or check for specific tags using the methods provided by the TagSet class.

Example

// Example of accessing and modifying SceneTags
SceneInformation sceneInfo = new SceneInformation();

// Add a tag to the scene
sceneInfo.SceneTags.Add("Outdoor");

// Check if a tag exists
bool hasTag = sceneInfo.SceneTags.Contains("Outdoor");

// Remove a tag from the scene
sceneInfo.SceneTags.Remove("Outdoor");