Search code examples
unity-game-enginegoogle-project-tango

Deprecated AR Camera with wew Google Tango Unity SDK Version


It seems like google is pushing new releases of the Tango Unity SDK quite often.

With the new version (Gankino), the "Tango AR Camera" is now deprecated. The point is that it is still used by all the examples.

Do you know if Google has planned to also update the examples?

Do you know if we can simply replace any Camera with the new "Tango Camera" prefab?

In my case, I am working on an app based on the Area Learning example, but I have no idea how to deal with ADF with the new SDK version.


Solution

  • I had problems getting the Google Tango examples to work with the newer (non-deprecated) Tango Camera prefab. If you simply replace the Tango AR Camera prefab with the Tango Camera, you will see a white background instead of the image from your phone's camera. This is because Tango Camera does not have the Tango AR Screen script attached to it by default. If you attach the Tango AR Screen script to the Tango Camera everything should work properly in most cases that I have seen. To get a basic working configuration for something like the Tango Placing Virtual Objects in Augmented Reality (Kitty) Tutorial, simply follow the tutorial instructions AND add the Tango AR Screen script to the Tango Camera. This is using Unity 5.6.1f1, Android 7.1.1, Android SDK Tools 25.2.5 (this older version is required for building with Unity at the moment, it seems, but should not affect the solution I have provided above), and Tango Unity SDK 1.53.