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 Simulating plane touch in XR simulation environment

Discussion in 'AR' started by haakonflaar, Sep 12, 2023.

  1. haakonflaar

    haakonflaar

    Joined:
    Jun 13, 2023
    Posts:
    9
    I am trying to test my AR foundation scene in the editor via Unity's XR simulation environment. I have a script attached to the XR origin that spawns a prefab on top of a plane when the plane is pressed (this logic works on an actual device). The plane detection works in the sim environment, however, nothing happens when I try to mouse click on the plane. How do I simulate a screen touch in the editor in an XR simulation environment?
     
  2. xiennastudio

    xiennastudio

    Joined:
    Aug 2, 2023
    Posts:
    19
  3. haakonflaar

    haakonflaar

    Joined:
    Jun 13, 2023
    Posts:
    9
  4. xiennastudio

    xiennastudio

    Joined:
    Aug 2, 2023
    Posts:
    19
    Last edited: Sep 13, 2023
    haakonflaar likes this.