Quantcast
Channel: Questions in topic: "unityfree"
Viewing all articles
Browse latest Browse all 45

Loading animation while Application.LoadLevel in UnityFree

$
0
0
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!

Viewing all articles
Browse latest Browse all 45

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>