Topic: Show distance and player location using google

Hey,

Is there a way to show the distance at the bottom right using the google maps api as you can see in the photo I attached?

Also is there a way to enable that blue player location circle with the google maps API?

PunBB bbcode test

Kind regards,

Julian

Post's attachments

Attachment icon Screenshot 2020-05-14 at 18.53.18.png 13.44 kb, 53 downloads since 2020-05-14 

Re: Show distance and player location using google

Hello.

1. Something like that (attached).
UI Scaler requires a multiplier, so watch a video on how to configure this:
https://www.dropbox.com/s/jrsazrf6qjafd … 0.mp4?dl=0

2. Use Input.locationService.lastData.horizontalAccuracy to get the current accuracy.
https://docs.unity3d.com/ScriptReferenc … uracy.html
Next, use the Drawing API, 3D marker, or some other way to draw a sphere with the specified radius.

Post's attachments

Attachment icon UIScaler.unitypackage 2.86 kb, 75 downloads since 2020-05-15 

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Show distance and player location using google

I was hoping that there would be just a simple API call using google without me having to build a multiplier or play with the horizontal accuracy. Thanks, I guess I'll try it out smile