First off I wanna say thanks for the tutorial, by far the most detailed one out there on how to do this.
However, it seems like some things may have changed? I get stuck on the Registering the Asset Type Actions step.
The method RegisterAssetTypeActions()
seems to expect another parameter now - one that implements IAssetTypeActions
, however, even though I changed my Action class to implement this interface instead of FAssetTypeActions_Base
- I still get the same error;
Cannot convert rvalue of type TSharedRef<FChartAssetTypeActions, ESPMode::ThreadSafe> to parameter type TSharedRef<IAssetTypeActions>
My current StartupModule()
code is as follows;
void FMyEditorModule::StartupModule()
{
MyAssetTypeActions = MakeShared<FMyAssetTypeActions>();
FAssetToolsModule::GetModule().Get().RegisterAssetTypeActions(MyAssetTypeActions.ToSharedRef());
}
Version is UE5.0.3
.
I'm still fairly new to C++, let alone Unreal's version of it. Haven't been able to solve this error yet, but will update this issue if I do.