Hello,
I added a transition screen for my game with this code:
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = Default)
TSubclassOf<class UUserWidget> TransitionScreenClass;
…
FLoadingScreenAttributes LoadingScreen;
LoadingScreen.bAutoCompleteWhenLoadingCompletes = false;
APlayerController* playerController = UGameplayStatics::GetPlayerController(GetWorld(), 0);
UUserWidget* TransitionWidget = CreateWidget<UUserWidget>(playerController, TransitionScreenClass); // Create Widget
TSharedPtr<SWidget> TheWig = TransitionWidget->TakeWidget();
LoadingScreen.WidgetLoadingScreen = TheWig;
LoadingScreen.MinimumLoadingScreenDisplayTime = 5.0f;
GetMoviePlayer()->SetupLoadingScreen(LoadingScreen);
I assign TransitionScreenClass in editor, it’s a umg widget and I have a spinner in it (animation in the animations tab).
The problem is that after about 0.5 seconds the mouse cursor appears and that stops the spinner.
If i move the mouse cursor, the spinner is also animating, if i stop moving the mouse, the spinner also stops.
How do I prevent the mouse cursor from appearing in the level transition screen ?