Editor.Asset/AssetTags Tags { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Tags property of the Editor.Asset class provides a mechanism to assign and retrieve tags associated with an asset. These tags are used primarily for filtering and organizing assets within the Asset Browser, allowing users to categorize and search for assets more efficiently.

Usage

To use the Tags property, simply access it from an instance of the Editor.Asset class. You can assign a set of tags to an asset or retrieve the existing tags for filtering purposes.

Example

// Example of setting tags for an asset
Editor.Asset myAsset = new Editor.Asset();
myAsset.Tags = new Editor.Asset.AssetTags { "Environment", "Texture", "HighRes" };

// Example of retrieving tags from an asset
Editor.Asset.AssetTags assetTags = myAsset.Tags;
foreach (var tag in assetTags)
{
    // Process each tag
    Console.WriteLine(tag);
}