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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question How to grab on Hover

Discussion in 'XR Interaction Toolkit and Input' started by Dermot_Sheehan, May 4, 2023.

  1. Dermot_Sheehan

    Dermot_Sheehan

    Joined:
    Apr 17, 2023
    Posts:
    5
    Hello, I am trying to create a buttonless grab where the player will automatically pick an object up once their hand touches an object. in the XR Controller script I see the select usage option only has buttons to choose from in its dropdown menu.

    Is it possible to have an object picked up when the hand hovers near it?
     
  2. leenlab2

    leenlab2

    Joined:
    Feb 1, 2023
    Posts:
    8
    Maybe using a Direct Interactor with a sufficiently sized collider, or using the "Hover To Select" setting on the Ray Interactor?