Search Unity

Question Changing scenes without closing them

Discussion in 'Scripting' started by ReeDimm, Mar 19, 2023.

  1. ReeDimm

    ReeDimm

    Joined:
    Jul 13, 2021
    Posts:
    29
    So I'm making a game where you will get flashbacks. And those flashbacks will be in a separate scene called "Flashbacks "from the main game scene. I already implemented system of changing scenes using this video.
    but I want to make it so when I come back to my main scene nothing has changed. Doors there were opened are still opened, items that you have picked up are still picked up etc. How can I make that?
     
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    7,925
    Two ways: Additively load the flash-back scene on top of the existing scene.

    Or, implement some form of data permanency system, so the original state can be built when you load back into the previous scene. Aka, a save system.
     
    Kurt-Dekker likes this.