using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class ToNextScene : MonoBehaviour { public void LoadNextScene() { int currentSceneIndex = SceneManager.GetActiveScene().buildIndex; SceneManager.LoadScene(currentSceneIndex + 1); } public void LoadStartScene() { SceneManager.LoadScene(0); } }
Please, how to deal when you have a GAME OVER and MULTIPLE SCENES and want to restart in the concerned scene when the player dies? I struggle so much to realise it.
I thought "do multiple scenes" did mean to actual work with multiple scenes. To load a scene is very easy and a quick look on the docs should do the work, but suppose I have multiple scenes for Level 1, Level 2, Level 3..Level 99, now I want to add a new component in the Camera of the scenes. Should I open scenes from 1 to 99, add the component and save? I am certain that there is a better way, or Unity really sucks for level management.
This tutorial has the complete info in terms of multiple scenes than other videos. its great..
thank you :)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class ToNextScene : MonoBehaviour
{
public void LoadNextScene()
{
int currentSceneIndex = SceneManager.GetActiveScene().buildIndex;
SceneManager.LoadScene(currentSceneIndex + 1);
}
public void LoadStartScene()
{
SceneManager.LoadScene(0);
}
}
:)
Thank you so much for your help :)
thank you so much bro :D
Thank you so much! You tutorial is very good!!!
Thanks you man this was very helpful!!!
Glad it helped!
Thank you very much Sir this helped me a lot
most welcome :)
it stil zhe best vid on this topic
Please, how to deal when you have a GAME OVER and MULTIPLE SCENES and want to restart in the concerned scene when the player dies? I struggle so much to realise it.
All in one, this is great
hit SUBSCRIBE for helpful tutorials! :)
Thanks for the useful video.
In 3D game world how do we position and instantiate the button after completing the goal right in front of the screen??
thanks it was great
thanks for information
Is this how open world games are created , adding scenes together ?
open world is using another method call pseudo generator
Thanks very helpfull.
I thought "do multiple scenes" did mean to actual work with multiple scenes. To load a scene is very easy and a quick look on the docs should do the work, but suppose I have multiple scenes for Level 1, Level 2, Level 3..Level 99, now I want to add a new component in the Camera of the scenes. Should I open scenes from 1 to 99, add the component and save? I am certain that there is a better way, or Unity really sucks for level management.
Thank you.
Instead of helping me, they just give me more problems
Make more tutorial videos....😂
will do :)