Forum Discussion

Sandstedt's avatar
Sandstedt
Start Partner
14 days ago

How do I change the threshold/distance for Button / Poke Interactable

Can't find any info in the documentation, and have tried adjusting all values in the Poke Interactable class. I want to change the default distance / threshold of 1cm before it triggers the Select event to something like 4mm.

Does anyone know how to change this?

I'm using the PokeInteractable prefab as a base in the Meta XR Interaction SDK Essentials (v77, so a bit old, but cant see anything in the changelog that says this have been changed)

 

1 Reply

  • Degly's avatar
    Degly
    Start Partner

    I think that if you want to change those values to make them work as Unity's XR Interaction Toolkit approach, you would have to modify the API via script, but that might be quite complicated. 

    Overriding the interactable's treshold on MinThresholdsConfig is technically possible though

→ Find helpful resources to begin your development journey in Getting Started

→ Get the latest information about HorizonOS development in News & Announcements.

→ Access Start program mentor videos and share knowledge, tutorials, and videos in Community Resources.

→ Get support or provide help in Questions & Discussions.

→ Show off your work in What I’m Building to get feedback and find playtesters.

→ Looking for documentation?  Developer Docs

→ Looking for account support?  Support Center

→ Looking for the previous forum?  Forum Archive

→ Looking to join the Start program? Apply here.

 

Recent Discussions