Multiple object interactions
To enable multiple object interactions on a single VR object, you can add multiple interactor components to the object. For example, you can add a Ray Interactor
component, a Direct Interactor
component, and a Gaze Interactor
component to the same VR object. This will allow the object to be interacted with using different methods, such as pointing and clicking with a hand controller, walking up to the object, and looking at the object for a certain period.
You can also set up different events for each interactor component, such as changing the color of the object when it is interacted with using the Ray Interactor
component and playing a sound when it is interacted with using the Direct Interactor
component. It’s also important to keep in mind that the order in which the interactors are added to the object and the order of the events on each interactor component will determine which interaction takes precedence when multiple interactions are possible...