Skip to end of metadata
Go to start of metadata


It is possible to add a computed column to the Asset Browser detail view.


Adding "Files count" column
 static CItemModelAttribute filesCountAttribute("Files count", eAttributeType_Int, CItemModelAttribute::StartHidden);

CAssetManager* const pAssetManager = GetIEditor()->GetAssetManager();
 pAssetManager->GetAssetModel()->AddComputedColumn(&filesCountAttribute, [](const CAsset* pAsset, const CItemModelAttribute* pAttribute, int role)
  if (role == Qt::DisplayRole && pAsset)
    return QVariant(pAsset->GetFilesCount());
  return QVariant();


Once added the column is fully functional as an ordinary column. For example assets can be ordered or/and filtered by the column values.

Table of Contents

  • No labels