Switch a widget with a different widget and change the widget switcher

here:

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:

link to project:

322873-0004.png

Hi, there! Can you share public access to google drive files? They are closed at the moment )

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.

But that’s not true…

You overwrite it somewhere. Also this sets it twice. Print after settings or use debug to watch the value.

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.

Sometimes does BeginPlay and Construct bug out and won’t work for me

So how do I set it to 0?

this codes set it to 1:

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.

thank you for the, it is resolved now

Thank you for the help, that did resolve my problem.

It is resolved