UObjectLibrary - Refresh assetdata

Hi,

I create an Objectlibrary with C++ and its load all assets from the game-path. If i restart the game in the editor the assetdata don’t refresh, if there are new assets at this path. Only if I restart the editor the library gets the new assets.

ObjectLibrary = UObjectLibrary::CreateLibrary( UStaticMesh::StaticClass(), false, GIsEditor );
ObjectLibrary->LoadAssetDataFromPath(TEXT("/Game"));
TArray<FAssetData> AssetDatas;
ObjectLibrary->GetAssetDataList(AssetDatas);

for ( int32 i = 0; i < AssetDatas.Num(); i++ )
{
    FAssetData& AssetData = AssetDatas[i];
   ...
}

How can I refresh the library? With begindestroy() in EndPlay()-Function I get an error.

Best regards,

Nils