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. Dismiss Notice

Question AR Application and Canvas

Discussion in 'Visual Scripting' started by amati0555, Aug 14, 2023.

  1. amati0555

    amati0555

    Joined:
    Apr 26, 2023
    Posts:
    2
    Hi guys. I have an AR app. I want a canvas (Canvas1) to appear on the phone screen when pointing the camera at the prefab (angel). When the camera is not pointed at the prefab - Canvas1 is not on the phone screen. BUT. When I launch the application, Canvas1 immediately appears. Even if I took the camera aside, and the prefab is not visible in the camera... That is, it turns out that this prefab is always visible for the AR camera?... Or maybe I made the Graph wrong.. I will be very grateful for any hints!!!
     

    Attached Files:

  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,362
    Otherwise you can use the dot product or manual angle calculation to calculate to show the object or not.
    And debug log value to debug the issue
     
  3. amati0555

    amati0555

    Joined:
    Apr 26, 2023
    Posts:
    2
    I haven't been working with Unity for a long time. What is "dot product" ?
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,362
    Google it