Hi! I hope I’m in the good section
(Sorry for my english, it’s not my native language haha)
I have a question about how to change skybox of a cardboard environment (switch between 6/8 different skybox materials in a loop) with the trigger. I was really happy to be able to make a 360° environment but here, I really can’t figure how to make it. (I think it’s by scripting, but I’m still not really good with code… i just read some and try to understand how it’s work!) So do you have some idea or better, a step by step to help me to build my application?
Thank you ![]()
The cardboard sdk offers you a simple function to call which is Cardboard.SDK.Triggered > This is true if the user pulled the trigger this frame and false in any other case. Now all you need to do is check it in Update
Hi, thanks for taking time to answer me ![]()
Yep, I already check the script triggered, I’m still stuck at the step “change skybox with a clic” . I think I have to make a tab of all my materials (0,1,2,3…), and do a function that show material0 at the beginning and when I clic (or hit the trigger) I add “+1” to my material so I pick an other one in the tabs. But I’m not really familiar with how to write it down correctly that why I’m looking for a tutorial about it ^^ I think what I need more is to learn to code (the syntaxe, logics…) and stop just testing some codes and make a puzzle with them haha
But I need to be able this one pretty fast so I can show my apartment to my mom! Thats why I was looking for a specific tutorial ^^ but if it’s doesn’t exist… It’s gonna be for the next trip
I’m still gonna try to look around, and this script in specific! Thanks again for your answer !