Question by
Stevieconnell · Mar 11, 2017 at 06:49 PM ·
scenetimer-scriptfadeoutfadein
How to add a scene fader to a timer
Hi guys, this should be a simple one for all you experts : ) How do I add a scene fader to a timer that counts down between scenes in Unity 5.5, I also need the fade to be all around the player as it is for a VR app. Here is my timer script
using UnityEngine.SceneManagement; public class scenetimer : MonoBehaviour {
[SerializeField] private string LoadLevel;
private float endtime = 10.0f; // 60 seconds
IEnumerator Start()
{
yield return new WaitForSeconds(endtime);
SceneManager.LoadScene(LoadLevel);
}
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612112949im_/https://answers.unity.com/themes/thub/images/avi.jpg)