Search Unity

ARcore with LeanTouch

Discussion in 'AR/VR (XR) Discussion' started by Jabu33, Oct 18, 2018.

  1. Jabu33

    Jabu33

    Joined:
    Sep 3, 2018
    Posts:
    4
    Hi,
    I am trying to work with LeanTouch and latest ARcore (1.5) but the LeanTouch added to the scene does not receive any screen touch from debugged device when ARdevice is present, but 'mouse' clicks on Game device are working fine.

    I have just basic HelloAR.cs with added LeanTouch in the scene. When I am debugging the app, in the ExampleController script I have debug loggers:

    Debug.Log("LeanCount " + LeanTouch.Fingers.Count);

    Printing finger count in LeanTouch - working only on Game preview mouse clicking in Unity.
    Debug.Log("InputCount " + Input.touchCount);

    Second printing finger count in Input.touchCount finger tapping on device.

    Any advice how to use Lean inside the AR ExampleController I want to scale/rotate/move objects spawned in AR on detected Ground Plane.

    Thanks