Search Unity

Question XR Interaction Toolkit AR - AR Selection Interactable

Discussion in 'AR' started by ACWesterberg, Jun 22, 2021.

  1. ACWesterberg

    ACWesterberg

    Joined:
    Oct 21, 2018
    Posts:
    11
    Hello! I was unsure wether to place this is the XR Interaction toolkit section or in the AR specific section, but I went with this due to not finding many AR conversations in other section.

    So, I have a rather large object on which I have the AR Selection Interactable script. But I have some issues with it, which is not an issue on smaller objects.

    On this larger object, let's say 40x40m just for a reference scale, when clicked (for selection with the script) the selection does not seem to trigger unless I aim the camera at around 3x3m area at the root of the parent Gameobject. I've tried to just use a cube, make it massive and place the code on that. So it does not have a parent, but the issue still persists.

    Am I just being dumb or is this an error or a limitation of the code?

    I've been trying to figure this out for months to no avail and I appreciate any and all tips on the matter.

    Happy coding!
     
  2. paulusuluap

    paulusuluap

    Joined:
    May 12, 2020
    Posts:
    4
    Hi ACWestberg,

    I recently studying about AR just like you, not so many things we can find like other threads. But I believe you can learn a lot about AR by downloading Unity's AR Foundation samples project. you can find in https://github.com/Unity-Technologies/arfoundation-samples and https://github.com/Unity-Technologies/arfoundation-demos for more advanced topics about AR, I've been playing there also, and it taught me a lot.

    I just found a new one : https://github.com/Unity-Technologies/XR-Interaction-Toolkit-Examples
     
  3. ACWesterberg

    ACWesterberg

    Joined:
    Oct 21, 2018
    Posts:
    11
    Hello. I have explored the AR Foundation samples project and it's use of the AR Selection Interactable. And it does what you expect since the object is so small. I've gone through the demo project previously but will have a gander at what's been updated these past few years.