Steps to Reproduce
Hi, I’m making a plugin and trying to destroy an UObjetc with force GC,but it doesn’t work.
Here is my sample code, if the GC works well, it will call UContentBrowserAssetDataSource::Shutdown(), but it doesn’t.
Wondering the best way to force GC to destry UContentBrowserAssetDataSource.
`// Destroy asset data source
const FString AssetDataSourceName = FString(“AssetData”);
IModuleInterface* AssetSourceModule = FModuleManager::Get().LoadModule(TEXT(“ContentBrowserAssetDataSource”));
if (AssetSourceModule)
{
AssetSourceModule->ShutdownModule();
}
// Shut down the data source immediately
GEngine->ForceGarbageCollection(true);
GEngine->ConditionalCollectGarbage();`