Unity Remote 5

Yesterday my phone (Galaxy S7 Edge) updated to unity remote 5.

According to Google Play now it should stream GPS/compass back to unity but how to use that data?

I do have sample code from unity docs that works on android when deployed but I didn’t managed to get editor to access my phone GPS nor compass.

You need to start Location and Compass AFTER pressing play button in editor. So, you should use “location.start” and “compass.enabled=true” lines in Update(), not in Start(). You can use something like this:

void Update()
{
if (Input.touchCount > 1)
{
Input.location.Start(0.1f, 0.1f);
Input.compass.enabled = true;
}


}