Hi, I would like to thank you for your usual support and help, and if you could help me on this issue please. I’ve a VR tour picture app where it will transfer you
I’m making a VR tour app that transfer you from one phase to another “in side a picture” through the use of the touchless trigger, however, I wasn’t being able to add the sphere change code to the trigger touchless code Could you please help me on that matter? I don’t know how to make it fit.
Attached it the entire code, I really appreciate your help and support
You need a way to calculate which sphere is next, maybe having your spherechanger script hold a reference to a sphere object, that has the next and previous spheres as properties, when you switch you read the next or previous from the current sphere, then set the current sphere to that one. And obj should be the game object with the spherechange script, which is probably the player? If so you can use GameObject.Find() to get the object by name.