Description
The HiddenByDefault
property of the Editor.AssetType
class indicates whether a particular asset type is hidden by default in the asset browser and similar interfaces. This property is useful for managing the visibility of asset types that are not commonly used or are intended for internal use only.
Usage
To determine if an asset type is hidden by default, you can access the HiddenByDefault
property on an instance of Editor.AssetType
. This property returns a boolean value, where true
means the asset type is hidden by default, and false
means it is visible.
Example
// Example of checking if an asset type is hidden by default
Editor.AssetType assetType = Editor.AssetType.Model;
bool isHidden = assetType.HiddenByDefault;
if (isHidden)
{
// Handle the case where the asset type is hidden
// For example, you might want to log this information or adjust UI elements
}