Problem with fade out cancel before scene change.
Hi,
I'm working on a virtual reality gaze-based experience. This essentially means that the only way to navigate through the VR experience is to look at a key object that changes the scene of the experience. When the user looks at a "scene change" object, a red fill-wheel shows up to let the user know they're starting to load a different scene. The wheel "drains" counter-clockwise, and when it's completely unfilled, the scene changes. I'll have a .GIF to show.
Naturally, if a user looks away from the scene change object before the fill wheel is gone, the fill wheel disappears and restarts to 0--my programmer made sure to have that function. However, the fade to black is where the issue is. The fade to black starts when the wheel is about 80 percent gone, and the fade completes when the scene ends to load a new one. My problem is, my programmer didn't have the fade restart if a user looks away while the fade begins. Here's the .GIF to show what I mean:
I need this fade out to disappear and reset when the user looks away. My programmer is no longer around, so I need someone on here to help me. I've VERY LITTLE programming experience, and I've tried editing the script with an else statement to no avail. Here is is below. How can I get the fadeout to reset? The fade out is just a transparent plane in front of the camera BTW, and it's always set to alpha 0 until fill wheel is 80 percent complete.
Your answer
Follow this Question
Related Questions
FadeInOut problem 0 Answers
startcourntine dose not exist in the current context 0 Answers
One GameObejct script affecting another GameObject of the same prefab 0 Answers
Tree chopping 0 Answers
Rotation script isn't working 1 Answer