it may be a very easy question. But I am a newcomer.
My question is showed in following pictures , thanks for helping :
MakeShareable
is trying to create an instance of IAssetRegistry
which you can’t do.
You should just access the asset registry instance via its module when you need it:
FAssetRegistryModule& AssetRegistryModule = FModuleManager::LoadModuleChecked<FAssetRegistryModule>("AssetRegistry");
AssetRegistryModule.Get().Stuff();
thanks for your help。
AssetRegistryModule.Get() return is “IAssetRegistry&”,but I cannont find Function Stuff() in class IAssetRegistry…
That was just an example. Replace “Stuff” with the function you want to call…