- implement a IconGenerator with FAssetViewExtraStateGenerator
- save the icon tag in asset meta data
- change the icon tag in asset meta data
- icon was not regerated
how to force refresh the asset icon without change the directory in content browser?
how to force refresh the asset icon without change the directory in content browser?
Hi Wendy,
You can broadcast a dummy post edit change, this will dirty the thumbnail pool for the item and request a refresh for the thumbnails that share the global pool (This what the content browser use).
FCoreUObjectDelegates::OnObjectPropertyChanged.Broadcast(YourAsset, FPropertyChangedEvent(nullptr));
it’s not refreshed, event if I called FCoreUObjectDelegates::OnObjectPropertyChanged.Broadcast(YourAsset, FPropertyChangedEvent(nullptr));
Sorry I got confused and referenced to the wrong concept (thumbnails).
At the moment those icon are pulled at the creation of the widget (via this function SAssetViewItem::GenerateExtraStateIconWidget) and they can’t be updated unless the widget/row for the item get recreated.
At the moment to the only way to achieve something similar would be to keep track of the created widget and update those existing instance outside of the content browser.