Search Unity

Show canvas / object only once automatically in scene

Discussion in 'Editor & General Support' started by conan222, Jun 20, 2019.

  1. conan222

    conan222

    Joined:
    Dec 15, 2018
    Posts:
    26
    Hello.

    I have a canvas with instructions on it that loads automatically when the 'Home' scene first loads. It has a close button so you can click on it to make it disappear and then there's always another button in that same home scene as part of a menu that you can make the instructions panel open again.

    After searching a great deal online I still can't seem to get my head around how to make that canvas load automatically just the one time when the user first opens the scene and is then hidden on all return visits to that scene..... unless of course they actually click on the instructions button. Seems a bit annoying that every time they return to the home scene they have to keep closing the canvas.

    I'm positive it's something to do with playerprefs but have no idea how to incorporate it into my VR project as I don't want it destroyed completely in case it needs to be viewed again later.

    Any help is greatly appreciated and thanks for your time.

    Andrew