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.

Question Input.location.Start doesn't work correctly if I check ARCore on XR Plug-in Management

Discussion in 'AR' started by omanuke, Sep 25, 2021.

  1. omanuke

    omanuke

    Joined:
    May 5, 2017
    Posts:
    13
    I wanna get GPS value in AR scene but Input.location.Start seems not to work correctly if I check ARCore on XR Plug-in Management in project settings.
    It works like a charm when ARCore is unchecked.

    Unity ver is 2020.3.19f1.
    AR Foundation, AR Core, ARKit ver is 4.1.7.

    This is repro code for this issue.
    If you start project, you can see 3 buttons and text.
    If you don't have permission, press req to get permission.
    If you have permission isEByUser reveals isEnabledByUser and hasPermission reveals
    Permission.HasUserAuthorizedPermission(Permission.CoarseLocation) should be true.
    When you're running this project on android with checked for ARCore, If you press start while you have permission, status should change to Running but it remains Stopped.
    If you uncheck ARCore, same operation will change status to Running.

    I misunderstand something? or Is this a bug?
    https://github.com/omanuke/TestARCoreLocation
     

    Attached Files:

    Last edited: Sep 25, 2021
unityunity