Skip to content

Instantly share code, notes, and snippets.

@moon-goon
Created March 22, 2016 13:47
Show Gist options
  • Save moon-goon/c616f6b2abd3f7685b5e to your computer and use it in GitHub Desktop.
Save moon-goon/c616f6b2abd3f7685b5e to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class AsyncSample : MonoBehaviour {
IEnumerator Start() {
AsyncOperation async = Application.LoadLevelAsync("name of the scene here");
yield return async;
Debug.Log("Loading complete");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment