How to transfer data from a Unity scene to Android Activity

Hello, I am currently writing an Android application that uses Unity to display a 3D model. The user is able to interact with the model as a selection of objects in the scene. I'm having problems transferring data back to Android activity.

I am currently executing a Unity scene as a subordinate, can someone tell me how to transfer data from the scene to Android?

Should I create a Java plugin explained here? link text

If so, does anyone have any tutorials on this? The source material is not enough. Thanks in advance.

+5
source share
2 answers

, Unity. , , .

0

Unity Activity (Java-), . # Unity JavaObject .

.

https://www.thepolyglotdeveloper.com/2014/06/creating-an-android-java-plugin-for-unity3d/

:

  • Unity.
  • Android. .
  • .jar .aar Android Studio ( .aar, Android. AndroidManifest.xml, Unity )
  • .aar Unity Assets/Plugins/Android.
  • # script, .
  • .apk Unity ( , )
  • apk .
0

All Articles