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.

Question AR Raycast not working on losing focus

Discussion in 'AR' started by bandyer, Sep 15, 2021.

  1. bandyer

    bandyer

    Joined:
    Feb 9, 2021
    Posts:
    4
    Hi.

    I'm making an app where i have to place 3D models, and drag them on previously detected surfaces.

    The issue is that whenever the app loses focus, raycasting on surfaces doesn't work anymore (ARRaycastManager.Raycast is always false), so i can't interact with 3D models. I'm sure surfaces are not deleted, because i can see surfaces grid on regaining focus, and no trackable is removed from ARPlaneManager.

    Thanks in advance.
     
    Last edited: Sep 16, 2021
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,698
unityunity