Hi Fellow Developers, I find myself in a predicament where while switching video clips through code the video player shows a frame of white sprite in between switching clips.
private void Start()
{
StartCoroutine(BisonSequence());
}
private IEnumerator BisonSequence()
{
var appearDelay = Random.Range(5f, 7f);
yield return new WaitForSeconds(appearDelay);
bisonPlayer.clip = bisonIntro;
bisonPlayer.Play();
yield return new WaitForSeconds((float)bisonIntro.length);
bisonPlayer.clip = bisonIdle;
bisonPlayer.Play();
}
I have come across this issue many times but could not find a solution any help is appreciated folks