Question about isVisible

I guys.
I contact you cause i need some clarification .
I’m building a game with an hidden button in menu. I set widget button in isvisible = false. It must be visible when i click in first game scene and i return in menu scene (i set in a function isvisible = true), but the button remain hidden. If i put the button hidden in another scene after the first game scene the button is visible. Here i post a schema, to explain better.

Isvisible don’t run

Menu scene (button hidden/isVisible = false) -->scene 1 ( isvisible = true) --> scene 2

IsVisible run

Menu scene --> scene1 (isVisible = true)–> scene 2 (button hidden/isVisible = false )

Scene 1 and scene 2 can return on menu…My question is that : why in scene 2 isVisible function runs and in menu no?

Hi @marcomm3007,

Are you absolutely certain that you’re referencing the same button object in both cases? And that you’re not accidentally re-creating the button? What is your “menu”, a separate scene/overlay?

Brent

Hi @marcomm3007,

Are you absolutely certain that you’re referencing the same button object in both cases? And that you’re not accidentally re-creating the button? What is your “menu”, a separate scene/overlay?

Brent