Search Unity

Question Blocking Raycast AR

Discussion in 'AR' started by Ghost_Dan, Dec 28, 2021.

  1. Ghost_Dan

    Ghost_Dan

    Joined:
    Oct 16, 2020
    Posts:
    1
    Hi, I am having a bit of trouble here.


    I have a scene where i start scanning for horizontal planes and then I tap one and a panel pops out to select the object I want to instantiate. I click the button and the object instantiates in front of the button. All good up to this point.


    But, whenever I try to select the object in order to move it, the raycast goes though and clicks another button behind, instantiating another object. Sure, I can move the object still but I don’t want the object to instantiate.


    Any ideas on how to fix this?
     
    Last edited: Dec 29, 2021
  2. todds_unity

    todds_unity

    Joined:
    Aug 1, 2018
    Posts:
    324
    AR raycasts only result in intersections with detected real world objects.

    For game objects, use physics raycasts.