Quest Detection Toggle Udon Prefab
THIS IS EXPIRIMENTAL
Tired of manually toggling on and off your gameobject when uploading for quest and pc? Like you have your pc ocean shader and then your quest ocean shader, plus all the logic to toggle the underwater stuff which has to be different too. Well this script does it for you!
Basically you have your quest objects in one array, and your pc objects in another. The script then detects if the build is on android or not, toggles the corresponding array of gameobjects for that platform, and toggles off the other array of gameobjects.
Simple explanation:
Automatically handles everything so you can just upload the map.
When on Quest, turn on Andriod Objects and turn off Non Android Objects.
When on PC, turn on Non Android Objects and turn off Android Objects.
Made this for vrchat map work. Probably wont work for anything else.
(plz give me money I'm broke)
.Unitypackage, UdonSharp script