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 determining how assets should be managed or displayed in the editor.
Example
// Example of checking if an asset type is a simple asset
Editor.AssetType assetType = Editor.AssetType.Model;
if (assetType.IsSimpleAsset)
{
// Handle simple asset logic
// For example, you might choose not to display it in certain UI elements
Console.WriteLine("This is a simple asset.");
}
else
{
// Handle non-simple asset logic
Console.WriteLine("This is not a simple asset.");
}