Description
The IsSimpleAsset
property indicates whether an asset is considered a "simple asset" within the context of the editor. A simple asset is one that is used by other assets or components and does not exist independently within the game. This property is useful for distinguishing between assets that are standalone and those that are auxiliary or dependent on other assets.
Usage
Use the IsSimpleAsset
property to check if an asset is a simple asset. This can be particularly useful when filtering assets in an asset browser or when performing operations that should only apply to standalone assets.
Example
// Example of checking if an asset is a simple asset
Editor.AssetType assetType = Editor.AssetType.Model;
if (assetType.IsSimpleAsset)
{
// Handle simple asset logic
// For example, skip processing or apply different logic
Console.WriteLine("This is a simple asset.");
}
else
{
// Handle standalone asset logic
Console.WriteLine("This is a standalone asset.");
}