Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

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:
    4,023
    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.