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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more..
    Dismiss Notice
  3. Dismiss Notice

How to load scene without replaying cutscene

Discussion in 'Getting Started' started by createappeal, Jul 15, 2019.

  1. createappeal

    createappeal

    Joined:
    Jul 10, 2019
    Posts:
    13
    As the title says, I have a cutscene to start the game. When the player goes in their house and comes back outside, the cutscene replays always. I have done destroy gameobject, destroy (this) script, for the script but still will always play. Any help is appreciated!
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,842
    You should probably put the cutscene in an entirely separate scene, which plays and then loads the first (outside the house?) scene.
     
    Ryiah and createappeal like this.
  3. createappeal

    createappeal

    Joined:
    Jul 10, 2019
    Posts:
    13
    I thought of doing that to seperate but thought I would be able to "perma" destroy on the scenesequence and cutscene. Thank you! Will probably end up just going with that. Seeing as though the cutscene is a combo of cameras taking away from the initial scene, would I just duplicate the scene to transition to the "real" playable scene? (if that makes sense)
     
  4. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,842
    Yes, that's one way to do it.

    Another way would be to set a flag in PlayerPrefs indicating that you've already played the cut scene, and have your cut-scene script honor that so as to not play it again, even when its scene is reloaded.

    Many ways to relieve this cat of its fur.
     
    createappeal, Ryiah and Joe-Censored like this.