Cannot Navigate in XR Simulator

Hello everyone

I downloaded Unity 2023.1 this week and tried to work with the XR Simulator.
according to my searches, I should be able to navigate the XR Simulator scene with Rightclick + WASD

This briefly worked two days ago, after about 2 hours of figuring it out - and I don’t even know what made the difference in the end. What I remember is setting the Editor Play policy to ‘Play Focused’ (from ‘Play Unfocused’). Then I was able to move around with rightlick+WASD.

Fast forward 2 days and here I am again struggling to make it work. I have no Idea what to try. In the XR Simulator settings, Navigation is enabled. In the normal Scene window, I can navigate with Rightclick + WASD, just as expected. But when I start the Game / XR Simulation, I can not navigate there at all. Other XR (I’m using AR Foundation 5.1) features seem to work there.

Does anyone have an idea what could be the problem here?

Greetings
romtecmax

1 Like

Do you also experience this issue in our sample project? GitHub - Unity-Technologies/arfoundation-samples at 5.1

Encountered the same problem. The sample project cannot be used either.

We run XR Simulation from our sample project all the time without navigation issues. Feel free to file a bug: Unity QA: Building quality with passion

Hi !

I seem to have similar issues : I am working on AR Tracked Image feature.

  • Image tracking works fine on device (but takes forever to build :slight_smile: )
  • It has worked for a short time using simulation Environment
  • Now, the Tracked image recognition won’t work anymore, even from a “blank” project. I can’t understand why, as I haven’t changed settings related to AR Tracking
  • While “Play”, when I drag right mouse click in the Game view, it doesn’t appear to update. However, the view in the “Simulation Camera”, from the “Scene” Tab, moves accordingly.

Could you please tell me if I am forgetting an element in the “minimum” list below ?

  • Start blank project
  • Create a “AR Session” in hierarchy (AR Session + AR Input Manager)
  • Create a “XR Origin” + Add ARTrackedImageManager (+ add a testPrefab)
  • Open a Test Environment and insert some gameobject with SimulatedTrackedImage script attached
  • Go to Play mode, and look at the gameobjects using the view from the simulation camera
  • The testPrefab should appear

Thanks for any hint given, I am really wishing to use the Editor to iterate rather than building on device !
Bertrand

(PS : I have Unity 2022.3, with AR Package - Foundation 5.1.1)

If you are setting up your own SimulatedTrackedImage components, you do need to be wary about their orientation: XR Simulation environments | AR Foundation | 5.1.5

By default the Game view should show the SimulationCamera view, so I’m not sure if you have your Game view configured differently or if you’ve changed some camera settings on the main camera maybe?

I got the same problem. I cant move the camera or position in the xr simulator in 2022.3.20f1 and 2022.3.13f. I enabled XR Simulation in the Player Settings. Created a new Scene, added AR Session and XR Origin. It does show the Simulation Environment, when i press run but there is no movement on the camera when i keep the right button clicked and press the WASD key. Any news on that issue?

We run XR Simulation from our sample project all the time without navigation issues. Feel free to file a bug: Unity QA: Building quality with passion

We have not seen any bugs filed for this issue since the last time I posted this FYI.

seems that ar tracked image manager broke simulation wasd controller. when i simply remve this component wasd works again

I’m locking this thread. Note our FAQ:

We are not able to reproduce any of the issues reported in this thread. Please file a bug if you are experiencing a bug.

If you have questions about how simulation works, or would like to share more information about how your project is set up, feel free to make a new forum post. We can’t do anything with a one-sentence description of a bug in your project that isn’t reproducible in our sample app. GitHub - Unity-Technologies/arfoundation-samples: Example content for Unity projects based on AR Foundation

Hi, I hope it’s ok to follow up here. I’ve encountered the same issue on my project, and just filled a proper bug report.

I downloaded arfoundation-samples 5.1, opened the project in Unity 2022.3.34f1 (apple silicon). I’m testing on an M2 Mac with OS 14.0 (23A344).

The XR simulator launches properly the Simple AR scene, but I confirm I can’t navigate.

The XR Simulator looks super useful and would really improve my developer experience, but not being able to navigate out of the box kind of kills it.

Hope this helps

Troubleshooting tips:

  1. Make sure that the XR Simulation checkbox is enabled in Project Settings > XR Plug-in Management
  2. To move you must select the Game view (not Simulator or any other view), hold down the right click button, and then navigate with WASD

Thanks for the quick reply Andy, that was helpful.

Project settings was properly configured, however I didn’t get that I should hold down right click while using the keyboard.

Also, as I just recently switched to Mac, I hadn’t realized the right click behavior on Mac OS wasn’t what I expected, which was the root cause of my issue.

I confirm the XR simulator works as expected in my configuration.
The problem was lying between the chair and the keyboard, thanks for looking into it.

1 Like

For me all the above solutions have not fixed the problem. The XR Device Simulator is not working correctly. I will also file a bug report. My problem is that the controller and headset are always situated on the floor. The headset can be moved off the floor by using WASD + QE, but the controllers always remain on the floor. Also, the controllers are positioned on top of each other, and the ACTION / SELECT inputs do not work, so I cannot grab or select objects. Rotating the controllers also does not work. Perhaps this is a Unity 6 problem?