Hi. I am new to Unity so I will try to make this as clear as possible. I created a Unity scene which i have exported to an Android Project. In the project i have created a new activity which extends the
AppCompatActivity and consists of a few input fields and a button. When I press the button it launches the unity activity.
My problem is : I want to transfer the data taken from the input fields and show the data in the Unity scene.
Any kind of help is appreciated. Thank you very much in advance.
Try UnityPlayer.UnitySendMessage()
How do i handle the receive message event in the unity script ?? Thank you for your reply.
Does not seem to be working. Do i need do to add the Android activity as a library import ? I have exported my unity scene to an android project. I opened the project in Android Studio and used the UnityPlayer.UnitySendMessage() inside a method the UnityActiviy.
Thank you very much for the reply
The question and answer here: How to pass data from Unity Scene to Android Activity - Questions & Answers - Unity Discussions