Skip to content Skip to sidebar Skip to footer

Passing Data From Unity To A Native App - How To?

I have two applications Native Android Application (Say NAA) Unity Game (Say UG) I want to integrate the unity game(UG) into the Native Android Application (NAA) I exported the u

Solution 1:

An idea is to just save data in the persistentDataPath: https://docs.unity3d.com/ScriptReference/Application-persistentDataPath.html

and read that folder from your native app. I'm not sure about the limitation of this since I just use Unity3d with a native PC application (I'm not sure it is possible to read the persistentDataPath that is /storage/emulated/0/Android/data//files on android with another app) but if it is possible you will just need to read data from there from your native app and write data there from your unity app.

Post a Comment for "Passing Data From Unity To A Native App - How To?"