Hey there,
is there any possibility in **UnityFree to show an loading animation while executing Application.LoadLevel()**? In the code below my loadingWheel-object has an animator component. Unfortunately the animation itself is not shown (only the first sprite) - I guess that Application.LoadLevel() is blocking the UI-thread. Could you help me please?
using UnityEngine;
using System.Collections;
public class PlayButtonController : MonoBehaviour {
GameObject loadingWheel;
// Use this for initialization
void Start () {
loadingWheel = GameObject.Find("LoadingWheel");
loadingWheel.renderer.enabled = false;
}
void OnMouseDown() {
loadingWheel.renderer.enabled = true;
Application.LoadLevel (1);
}
}
Thank you!
↧