Unity-Technologies / XR-Interaction-Toolkit-Examples

This repository contains various examples to use with the XR Interaction Toolkit
Other
1.11k stars 363 forks source link

AR scene, not working in editor? #24

Open MephestoKhaan opened 4 years ago

MephestoKhaan commented 4 years ago

Is the ARinteraction scene supposed to work in the editor? I am clicking around and nothing happens.

Definetely using 2019.3, could be because AR_FOUNDATION_PRESENT is false for some reason? I do have ARFoundation 3.1

d4n3x commented 4 years ago

This is indeed a problem that I also discovered. This problem exists due to a broken Input.TouchCount() of the most recent unity version. It doesn't recognize the mouse input as you already said.

The Workaround for this is to use the Device Simulator of the Package Manager. Just import it in your project and add it to the Tabs via Window->General->Device Simulator

Here the clicking will work to spawn an object.

Greets, Danex

cptSwing commented 4 years ago

Which version of the Device Simulator are you using @d4n3x ? I'm on Unity 2019.3.3f1 and have tried the last three versions to no avail :/

d4n3x commented 4 years ago

As far as I remember 2019.3.0f6 - but i can look up the version tomorrow.

So u had no luck placeing the object in the device simulator tab?

cptSwing commented 4 years ago

I will have to backtrack here - after disabling the 'DisableDebugPlaneOnDevice' script on the placement plane it works swimmingly. Cheers!

(XR Interaction Toolkit 0.9.2, Unity 2019.3.3f1, Device Simulator 2.1.0)