Description
The Category
property of the Editor.AssetType
class is a string that represents the category of the asset type. This property is used for grouping asset types in the user interface, allowing for better organization and navigation within the editor.
Usage
To access the Category
property, you need to have an instance of the Editor.AssetType
class. You can then retrieve or set the category of the asset type as needed. This property is particularly useful when you want to display or filter assets based on their categories in the UI.
Example
// Example of accessing the Category property
Editor.AssetType assetType = Editor.AssetType.Model;
string category = assetType.Category;
// Output the category
// This will typically be something like "Models" or "Textures" depending on the asset type
Console.WriteLine($"Asset Category: {category}");