AssetRegistry GetDependencies could not Get all Dependencies after the Perforce Download

I want Get all Dependencies from the Perforce,but the API is not ruturn all the Dependencies releate to it self;When you open tthe Reference View,there are still some texture are not Sync correct.Sync Package from SourceControl takes the main Thread but AssetRegistry rebuild seems runing on the background Thread.Is there any API to Force AssetsRegistry refresh the Dependencies?

[Attachment Removed]

Steps to Reproduce
1.Get Selected Assets;

2.Using AssetRegistry.GetDependencies Function to get All Dependencies;

3.Update Dependencies from Perforce by calling AssetViewUtils::SyncPackagesFromSourceControl;

4.Append the Dependencies to the Next foreach circle;

[Attachment Removed]

Hi!

Could you try calling WaitForCompletion() on the AssetRegistry after you have synced and loaded the new packages?

The AssetRegistry will scan any newly loaded packages, but only once per tick or when manually requested.

WaitForCompletion should flush any pending packages to scan and immediately update the internal state with their info.

Kind Regards,

Sebasitan

[Attachment Removed]