Search Unity

Question Correct Toggle mode for XRRayInteractor's select action trigger

Discussion in 'VR' started by RhinocerosGamesProduction, Feb 19, 2022.

  1. RhinocerosGamesProduction


    Dec 19, 2017
    I have a question regarding the select action trigger mode on the XRRayInteractor.

    Right now, when I set the select action trigger to "Toggle", I can select an interactable, which stays selected - great! But when I want to select a different object while having an active selection, I can only select another interactable by clicking the selection button twice (first click deselects current object, second click selects new object - even though both clicks are on the new object)

    I basically want to select another object with only one click, when another one is already selected, so that the selection immediately switches when clicking on other objects, instead of unselecting the current object only.

    I've tried all trigger modes but none of them work as I need it to be, but it shouldn't be impossible to achieve that with the Toolkit. Does anyone have an idea how to achieve this?