Hey guys,
I have made it so there are two buttons which show and hide a gameobject.
But when I transit to another scene, I want it to show (if it was shown on the previous scene) and hide (if it was hidden on the previous scene).
How can I do this. I have searched this question up many times, but they always have a sceneManager, and I dont know how to do that.
I have to finish this before Friday 28 July so pls answer.
Bye,
Tushi
You will need to persist some amount of data across scenes. So maybe a GameManager object that is kept between scenes with the DontDestroyOnLoad attribute. When you load the new scene have it check whether the objects should be active or not.
Good luck
PlayerPref or DontDestryOnLoad should do it