Search Unity

Delaying scene change

Discussion in 'Scripting' started by rudigreig, Mar 17, 2019.

  1. rudigreig

    rudigreig

    Joined:
    Dec 11, 2018
    Posts:
    50
    How can i delay a scene change? for example:
    Code (CSharp):
    1. SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
     
  2. SparrowGS

    SparrowGS

    Joined:
    Apr 6, 2017
    Posts:
    2,536
    Same as you delay anything, check if a value has dropped below 0 in update while subtracting deltaTime from it, use a coroutine with WaitForSeconds, many ways..