My lives and score UI is showing on the win screen and main menu. Only appears on the menu screen when I click the menu button on the win screen when I’ve played through a level. The UI only shows on the win screen after I have played through a level as well.
This is my current solution that works if you press the play again button on the win screen. Pressing the main menu button enables the UI again on the menu screen.
void Update()
{DisableUiOnWin(); } public void DisableUiOnWin() { if (SceneManager.GetSceneByName("You Win").isLoaded) { Debug.Log("Disable UI!"); uiCanvas.SetActive(false); } else { Debug.Log("Enable UI!"); uiCanvas.SetActive(true); } }