Forum Discussion
Cipiox
5 years agoHonored Guest
OVRScreenFade FadeOut() function not working properly
Hi,
I'm a college student working on their final project and would really appreciate some help! I'm trying to use the FadeOut() function in OVRScreenFade.cs, so I have a script that includes the following code:
However, when I activate the script, the scene doesn't fade out, but it basically just looks like the black UI pops up and only partially covers the view. It doesn't fade out and is evidently not functioning properly.
Is my script incorrect? I would really appreciate any insight that people could give on how to best implement a "fade to black" transition for the Oculus Quest.
Thanks in advance!
- desperate college student with limited coding experience
I'm a college student working on their final project and would really appreciate some help! I'm trying to use the FadeOut() function in OVRScreenFade.cs, so I have a script that includes the following code:
public GameObject centerEyeAnchor;
public void OnEnable()
{
// Fades out of the current scene
centerEyeAnchor.GetComponent<OVRScreenFade>().FadeOut();
// Loads the next scene according to build index
UnityEngine.SceneManagement.SceneManager.LoadScene(UnityEngine.SceneManagement.SceneManager.GetActiveScene().buildIndex + 1);
}My OVRCameraRig's CenterEyeAnchor has the "OVRScreenFade.cs" script attached to it, and I made sure that the CenterEyeAnchor is correctly assigned in the Inspector. However, when I activate the script, the scene doesn't fade out, but it basically just looks like the black UI pops up and only partially covers the view. It doesn't fade out and is evidently not functioning properly.
Is my script incorrect? I would really appreciate any insight that people could give on how to best implement a "fade to black" transition for the Oculus Quest.
Thanks in advance!
- desperate college student with limited coding experience
1 Reply
Replies have been turned off for this discussion
- CipioxHonored GuestNever mind! Solved the issue by using a signal emitter from the OVRCameraRig in a Timeline asset. The signal called OVRScreenFade.FadeOut() and was able to execute perfectly.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 5 months ago
- 10 months ago