Hi, at first I tried to hide the mouse only on the Canvas thinking that it would affect the mouse visibility on the other elements of the widget, but I only got the result I wanted when I changed the mouse cursor on all elements. Either way, thank you very much for your help.
void UStartMenuHUDClass::OptionButtonClick()
{
if (!PC)
GetPC_StartGame();
if (PC)
{
PC->SwitchToKeyboardNav();
PC->bShowMouseCursor = false;
Canvas->SetCursor(EMouseCursor::None);
Overlay->SetCursor(EMouseCursor::None);
VerticalBox->SetCursor(EMouseCursor::None);
StartButton->SetCursor(EMouseCursor::None);
StartButtonText->SetCursor(EMouseCursor::None);
OptionButton->SetCursor(EMouseCursor::None);
OptionButtonText->SetCursor(EMouseCursor::None);
}
}