This is a new feature of Google team and is named ARCore.
They tell us about the ARCore :
Introducing a preview of a new SDK called ARCore. It brings augmented reality capabilities to existing and future Android phones. Developers can start experimenting with it right now.
This feature work with : Android Studio , Unity and Unreal.
If you want to test it you can find the source code on github .