Transfer data from iOS app to Unity3D

What is the proper way for transfering complex objects from iOS app to Unity3D using c plugin? For example, I have to transfer an NSArray, which contains Rewards. Each Reward contains UIImage, NSString-s, some float values, etc.

As I know, I can send only a single string to Unity3D. I found a way with sending string with byte data and deconding it in Unity. Is it the right solution in my case?

Thanks in advance for help.


I decided, that the best solution for data transfer is using JSON strings. In Unity I used tiny library litJSON for parsing.

When I had to transfer image, I saved it on device and transfered path to the image.

Need Your Help

how to use alias from select query

php mysql variables time alias

i have a question how to use an alias from a select query:

How to import strophe using requirejs?

javascript amd webpack strophe

I'm trying to use strophe.js with relay-starter-kit. I checked out relay-starter-kit, added "strophe": "^1.2.2" to package.json and ran npm install.