Hello alltogether!
I’m looking for a way to refresh my content browsers after manipulating aka moving .h and .cpp files. Live Coding at least updates something meaning it finds the new paths - but doesnt delete old ones, leading to an fatal error when trying to access old paths.
So far i’ve tried:
ContenBrowserDataModule-> Subsystem → deactivate/activate DataSource(TEXT(“ClassData or ClassDataSource”))
and
IContentBrowserSingleton → SetSelectedPaths(
{ ParentPath },
true, // bNeedsRefresh feels like it should refresh
true // bPathsAreVirtual
);
and
IAssetRegistry → ScanModifiedAssetFiles(AbsFilePaths);
as well IAssetRegistry → ScanPathsSynchronous(Paths, true);
and
for (TObjectIterator It; It; ++It)
{
UContentBrowserClassDataSource* ClassDataSource = *It;
ClassDataSource->SetVirtualPathTreeNeedsRebuild();
ClassDataSource->RefreshVirtualPathTreeIfNeeded();
}
but nothing seems to work, and i dont want to expose the necessary objects in engine code since this has to be maintained. Does anyone know how to update/force refresh the content browser without restarting the engine or changing engine code?
And if any unreal developer reads this, can you maybe give us some content browser api for this? ![]()