Search Unity

Question OnHoverExit does not get called when Interactable moves out of Socket

Discussion in 'XR Interaction Toolkit and Input' started by MarekLg, Jan 12, 2021.

  1. MarekLg

    MarekLg

    Joined:
    Jan 31, 2018
    Posts:
    26
    I have a Bow with an attached string. That string has a XRBaseInteractable attached, so that it can be grabbed by any XRBaseInteractor. The position of string gets calculated by the clamped position of the selecting interactor, so that string does not move too far from the bow.

    string.onHoverExit manually clears that selection (by calling interactionManager.SelectExit(...)), with the goal being that string exits the selection if interactor goes out of range.

    When the XRBaseInteractor is of type XRBaseControllerInteractor, this works as intended.
    When the XRBaseInteractor is of type XRSocketInteractor, this does not work.

    Why is that so?
    Any help is greatly Appreciated.
     
  2. Matt_D_work

    Matt_D_work

    Unity Technologies

    Joined:
    Nov 30, 2016
    Posts:
    202
    Please raise a bug on this!
     
  3. MarekLg

    MarekLg

    Joined:
    Jan 31, 2018
    Posts:
    26
    I will check if it still exists, and raise a bug if necessary.