Thanks for your interest in the Project Tango Plugin for Unreal Engine 4. This repository is no longer maintained. Please see https://developers.google.com/ar/ for the latest information on Google AR capabilities for UE4.
The Tango 4 Unreal Plug-In enables the use of Project Tango tablet devices sensors within Unreal 4 Android deployments.
- Create a "Plugins" folder inside you Unreal 4 project, if it doesn't already exist.
- Clone this repository into the Plugins folder:
git clone https://github.com/opaquemultimedia/Tango4Unreal.git
- Alternatively, if your project is already a git repository:
git submodule add https://github.com/opaquemultimedia/Tango4Unreal.git
- Refer to the Git Book for more information about git submodules
- Go to your plug-in settings, browse the to "Google" category, enable the plug-in, then restart the Unreal Editor.
Currently, the most stable implementation is the "Tango Motion" component. This retrieves the device's positional tracking data and presents functions to access it.
- Add a "Tango Motion" component to the pawn.
- Under the Tango|Motion category, change:
- "Position Offset" to:
X 0.0 | Y 0.0 | Z 175.0
- Place a reference to the component in.
- From the component reference, add a "Set Is Sending Motion to Pawn" function node, check the boolean to true.
- Connect an execution link from the BeginPlay event to the function.
- Setup the pawn to be the default pawn spawned for the level's game mode, then launch the project on your device.
- Have fun!