OVR screen fade Does Not fade out.
I need help fading out the camera/ screen in VR to a color.
I Have tried adding this Code from another forum post from a while a go and it still does not work, I have Also tried using other Screen fading scripts, They work in the game - view in unity, but not in VR.
I Have tried adding this Code from another forum post from a while a go and it still does not work, I have Also tried using other Screen fading scripts, They work in the game - view in unity, but not in VR.
IEnumerator FadeOut() {
float elapsedTime = 0.0f;
Color color = fadeColor;
color.a = 0f;
fadeMaterial.color = color;
isFading = true;
while (elapsedTime < fadeTime)
{
yield return fadeInstruction;
elapsedTime += Time.deltaTime;
color.a = Mathf.Clamp01(elapsedTime / fadeTime);
fadeMaterial.color = color;
}
isFading = false;
}