Download

Get object thumbnail for Slate

Hi

What best way to get thumbnail for a object? For example i need to get for some static mesh. I collect data about objects (StaticMeshes) via AssetRegistryModule:


FAssetRegistryModule& AssetRegistryModule = FModuleManager::LoadModuleChecked<FAssetRegistryModule>("AssetRegistry");
TArray<FAssetData> AssetData;

const UClass* Class = UStaticMesh::StaticClass();
AssetRegistryModule.Get().GetAssetsByClass(FName(*Class->GetName()), AssetData);

But how to render or get cached thumbnail image and pass it to Slate (Image)? I deeply dived into UnrealEd code already =)