bool HiddenByDefault { get; set; }

robot_2Generated
code_blocksInput

Description

This property indicates whether the asset type is hidden by default in the asset browser and other similar interfaces. When set to true, the asset type will not be visible unless explicitly shown by the user or through specific settings.

Usage

Use this property to determine if an asset type should be initially hidden from the user in the asset browser. This can be useful for asset types that are not commonly used or are meant to be accessed only through specific workflows.

Example

// Example of checking if an asset type is hidden by default
Editor.AssetType assetType = Editor.AssetType.Model;

if (assetType.HiddenByDefault)
{
    // Handle the case where the asset type is hidden
    // For example, you might want to log this information or adjust UI elements
    Log.Info($"The asset type {assetType.FriendlyName} is hidden by default.");
}