Augmented Reality and Location

Hi there,

So I am very new to Unity. I am wondering if there is a Unity plugin that does AR, but uses your location. So, I can create an object in a specific point in the world and it will use the devices location and compass to determine if the object should be draw.

Regards,
Dom

I think there is not such a plugin available. Of course you can browse Unity Asset Store (https://www.assetstore.unity3d.com/) to make sure.

On the other hand you can create such feature by yourself. You can get the location with LocationInfo (latitude & longitude) and convert that location to your Unity scene coordinate system. The looking direction you can get from Compass and set that direction to your camera in Unity scene. Here are the references to LocationInfo and Compass:

It is not very complicated but on the other hand it is now very precise. Depending where you are the location accuracy is like 5 meters at best (the altitude can vary even tens of meters). The compass direction accuracy is something like 5 degress and there is a little lag as well. The GPS & compass method works but depending on what you need it may not be precise enough. You can look for Nokia City Lens to get the idea what you can achieve at best with this method.