Description
The All
property provides a collection of all currently registered asset types within the editor. This includes base asset types such as models, textures, animations, and more. It is a static property, meaning it can be accessed without instantiating the AssetType
class.
Usage
Use the All
property to retrieve a read-only collection of all asset types available in the editor. This can be useful for iterating over asset types to perform operations such as filtering or categorizing assets.
Example
// Example of accessing all asset types
var allAssetTypes = Editor.AssetType.All;
foreach (var assetType in allAssetTypes)
{
Console.WriteLine(assetType.FriendlyName);
}