I’m trying tio make a menu with 3 widgets, one if for the main menu and the second is for the ingame menu + the options menu and us e a Widget Switcher on the ingame menu using an integer and one for a custom FPS counter.
UI_Main 2 is the Widget Blueprint that don’t work.
Int WS 0 = Ingame Menu
Int WS 1 = Options Menu
Int WS 2 = Quit Game
The problem is that the integer start on 1, not on 0 and can’t start on 0. If I set it to 0 will Unreal Engine set it to 1.
Here are some screenshots:
Just start checking that. Why do you use DoOnce in Tick instead of BeginPlay or Construct? The problem is not with WidgetSwitcher, smth wrong is in the logic under Tick.
It is rather bad practice to implement smth in Tick just to fire it only once. And I am sure that the error is pictured. You are using macro defenition, but as I see, this macro is setting Switcher Index to 1.