// Free - Skybox Switcher script for VRChat (Udon Graph)
Description
This is a simple skybox switcher script for VRChat. It's based on the tutorial by PlayerBush001, I'm just saving you having to make the script in Udon Graph (woohoo).
1- Start a new project in VCC or Unity Hub using 2019.4.3 1f1 and VRCSDK3
2- Drag & Drop my asset into your Project
3- Put the (button) prefab in your hierarchy, place it wherever you like. Apply whatever material you want to the button.
4- In the inspector -> Public Variables -> 'Skyboxes' set # to how many skyboxes you want to toggle (e.g., night/day, cycle through different colors, whatever you like).
5- Drop your skybox materials into the array, compile and you're ready to go.
Note: This only changes the skybox, it won't rebake reflections so only use where changing the sky won't make things look weird (unless you want them to look weird, then cool, go ahead! LOL)
Can I make my own button?
Yep. No need to use my cube, you can just drop the script into your own object.
How?
1- Select your object. In the inspector, add Udon Behavior.
2- Use the dropdown to ensure the program source will be an Udon Graph Program Asset.
3- Drop my script into the "Program Source" (it is literally called Skybox Toggle Udon Graph Program Asset)