Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

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,802
    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.