Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

Object Manipulation and Instant preview not working together #523

Open
knightcube opened this issue Mar 19, 2019 · 1 comment
Open

Object Manipulation and Instant preview not working together #523

knightcube opened this issue Mar 19, 2019 · 1 comment

Comments

@knightcube
Copy link

knightcube commented Mar 19, 2019

SPECIFIC ISSUE ENCOUNTERED

I tried running the Object Manipulation sample scene (after applying fix given here) using instant preview but when I tap on the screen the andy game object does not get placed in the scene. It would be good to add this feature also. Here is the warning that is shown -

Instant Preview has limited support for touch based input

VERSIONS USED

  • Unity: 2018.3.0f2
  • ARCore SDK for Unity: v1.7.0
  • Device manufacturer, model, and O/S: Nokia, 7 plus, Android
  • ARCore: 1.7.190128066
    On Windows, use: adb shell pm dump com.google.ar.core | findstr /i "packages: versionName"
    On macOS, use: adb shell pm dump com.google.ar.core | egrep -i versionName\|packages:
  • Output of adb shell getprop ro.build.fingerprint: Nokia/Onyx_00WW/B2N_sprout:9/PPR1.180610.011/00WW_3_39F:user/release-keys

STEPS TO REPRODUCE THE ISSUE

  1. Run the Object Manipulation scene in Unity
  2. Click on the play button to run in Instant Preview mode
  3. Warning is shown

WORKAROUNDS (IF ANY)

Use Build and run after applying the fix here . Works perfectly fine. You can place the Andy Game Object and manipulate it in the scene without running into issues.

@fredsa
Copy link

fredsa commented Mar 27, 2019

To fix this issue locally in your Unity project, please add the following:

#if UNITY_EDITOR
    // Set up touch input propagation while using Instant Preview in the editor.
    using Input = GoogleARCore.InstantPreviewInput;
#endif

to the top of these scripts:

Assets/GoogleARCore/Examples/ObjectManipulation/Scripts/Gestures/DragGesture.cs
Assets/GoogleARCore/Examples/ObjectManipulation/Scripts/Gestures/GestureRecognizer.cs
Assets/GoogleARCore/Examples/ObjectManipulation/Scripts/Gestures/GestureTouchesUtility.cs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants