Hello,
i am trying to change the way the laser pointer in the VR template works.
By default, when the laser ray hits an interactive object (grab), a text with the object´s name will be set visible.
I would like to change it, so that when above is true AND, in addition, a button on the controller is pressed (oculus rift), a material on the obejct will be changed, lets say with every pressing of the button the user is switching to another material of an array of few defined materials.
As far as I understand, it should be coded here (see attachment) but i dont really know how to map the controller´s button´s state (pressed) to it and how to let it cycle thorugh a defined array with every click. Help will be very appreciated!
Best,
Pio