Search Unity

Adding Interactor Events at Runtime

Discussion in 'VR' started by dulmot, Jun 1, 2020.

  1. dulmot

    dulmot

    Joined:
    Jan 8, 2020
    Posts:
    4
    Hello!
    I tried to add an OnHoverSelect event to an XRGrabbable on runtime for the past two days without any success.
    I couldn't find any solution, I'm sure it's quite basic, but still couldn't figure out how to do it.
    Has anybody done that or can guide me in some way?
    Thanks in advance.
     
  2. a436t4ataf

    a436t4ataf

    Joined:
    May 19, 2013
    Posts:
    1,933
    If you don't say what you've tried, no-one can help you.

    I found the docs to be very clear on this, and the code is identical to how it's been in Unity since 2014? 2015?. So if there's something not working, you really need to explain what.