Hi I am trying to parse/create a TSharedPtr to a c++ function from blueprint, I have not used shared pointers before and have no clue on how to accomplish this.
//.cpp
void UStaticBPLibrary::ShowLoadingScreen(TSharedPtr<SWidget> inWidget)
{
FLoadingScreenAttributes LoadingScreen;
LoadingScreen.WidgetLoadingScreen = inWidget;
GetMoviePlayer()->SetupLoadingScreen(LoadingScreen);
}
//.h
UFUNCTION(BlueprintCallable, Category = Loading)
static void ShowLoadingScreen(TSharedPtr<class SWidget> inWidget);
Error:
Unrecognized type 'TSharedPtr' - type must be a UCLASS, USTRUCT or UENUM