I am creating a 360 virtual tour for VR headset in Unity - I create sphere and fill it with panoramic photo as material. I create multiple such spheres.
I want to configure my VR BOX joystick such that when I click one particular button on it I move to the next image.
I was creating virtual tour according to this tutorial:
if you have already all the spheres in the scene,
can create array of transforms from them:
publicTransform[ ] allSpheres;
int currentIndex=0; // keep track of which sphere we are in
then using your buttons it would increment the currentIndex,
and also need to check if can increase (go next) or decrease (go previous) it,
then go to next sphere, using the current transform from the array:
ChangeSphere(allSpheres[currentIndex])