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 Placement Interactable in desktop simulation?

Discussion in 'AR' started by nich2408, Jun 27, 2023.

  1. nich2408

    nich2408

    Joined:
    Jun 27, 2018
    Posts:
    9
    Hi everyone, just started with AR Foundation 5.0.

    Is there a way to simulate tap gesture on editor to make it work with AR Placement Interactable component?
    What I'm trying to achieve is running the "Interaction" scene from the official samples repo (arfoundation-samples from Unity-Technologies/arfoundation-samples: Example content for Unity projects based on AR Foundation (github.com)) in editor by using XR simulation so I can place cubes on AR planes without having to build it on target device.

    Didn't find any info about this on documentation/forum, maybe I'm simply missing some option.

    upload_2023-6-27_13-49-49.png

    upload_2023-6-27_13-50-15.png

    Any help appreciated!
     
  2. nich2408

    nich2408

    Joined:
    Jun 27, 2018
    Posts:
    9
    Just found PlaceOnPlace.cs from the demo, I'm currently using it to achieve this (I don't need to scale or rotate the spawned gameobject).
     
    andyb-unity likes this.
  3. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    774
  4. nich2408

    nich2408

    Joined:
    Jun 27, 2018
    Posts:
    9