I am not using the loading bars . I want to use a png image for my loading scenes. I have some code here :
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class djsi : MonoBehaviour {
public png;
// Use this for initialization
void Start () {
img.gameObject.SetActive(false);
}
// Update is called once per frame
IEnumerator abc()
{
img.gameObject.SetActive(true);
yield return new WaitForSeconds(1.5f);
SceneManager.LoadSceneAsync("scene1");
}
void Update () {
}
}