WaitForSeconds Takes 4 Times as long


Tryed making a simple loading script to show a splash screen since are level was loading to fast, and we had to slow it down. have run into a issue that the loading code is taking up a much larger timescale than 4 seconds. Code as follows:

using UnityEngine;
using System.Collections;

public class Loading1 : MonoBehaviour {

	// Use this for initialization
	void Start () 
		StartCoroutine ("wait");
		//wait ();
		//LoadLevel ();s

	IEnumerator wait(){

		yield return new WaitForSeconds (5);
		print ("now");
		LoadLevel ();

	void LoadLevel(){
		Application.LoadLevel ("Level1");

You are wainting for 5 seconds, not 4. Anyway, make sure Time.timeScale is equal to 1, because it impact the coroutine. If you want to ignore the time scale, use a loop, Time.realTimeSinceStartup and yield return null.

Thanks for help guys, but it works in build not just takes longer iside of the unity Engine. (Sorry)