Forum Discussion
MrGeddings
12 years agoExplorer
fade in and out for scene change with Rift
i am trying to figure out how to do a scene change with fading in /out to black however the solutions ive seen seem to be for 2d ish games anyone have an easier solution? or perhaps a youtube tutorial link or something? thanks :-).
4 Replies
Replies have been turned off for this discussion
- MrGeddingsExplorerno help? :?
- ZephyxHonored GuestWhile I have no experience with something like this, I figure I can at least try to suggest something and maybe you'll know a way to actually put it into use.
If all you're trying to do is just like a fade to black can you just take whatever the light source is for the main, player veiw camera, and have it act like a dimmer switch, lowering itself till there effectively no light/blackscreen? - moltonExplorerI like using a box around the player with the faces facing the player and a transparent shader on it to fade in and out with the alpha values.
- sh0v0rProtegeI have written a screen fade class, it basically uses Unity GUI to render a black texture over the entire screen and modifies the alpha value in a co routine. The texture Rect is given the screen dimensions.
I have a singleton for this class to allow it to be called from anywhere and it maintains some static bools about its state so you can wait for it. E.g. Faded or Fading
Mine allows you to ask the class to fade the screen 'From black, To black, From white & To white' specify the time and wether it fades the Listener volume as well. When fading the volume you need to make sure you restore the current setting if your game allows the user to adjust the master volume output.
Sorry I can't share this class but it's fairly trivial to implement assuming you are familiar with what I am talking about and have intermediate to advanced programming knowledge.
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
- 2 years ago
- 3 months ago
- 5 years ago
- 3 years ago