Search code examples
google-project-tango

Embed ADF asset file in Tango Unity project


The developer guide about Area Learning in Unity explains how to load an Area Description File which is on the device running the app, using AreaDescription.GetList().

But is it possible to embed an ADF file in the Unity project and load it at runtime?

If yes, what would the C# code look like?


Solution

  • I guess there is plenty of ways to do that, the approach I had in my app was to put the ADF file in "StreamingAssets" so I can access it in run time. Then I used the following method: https://gist.github.com/Cocottier/c177ee2fb4ffdb727f2512a5b032ae01

    Cheers!