UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"loading bar at scene load"
using UnityEngine; using System.Collections; using UnityEngine.UI; public class LoadWaiting : MonoBehaviour { public Image loadbar; IEnumerator Start() { for (int i = 0; i < 120; i ) { loadbar.fillAmount = 1 / 120f; yield return new WaitForEndOfFrame(); } Application.LoadLevel("HomeScene"); } }