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.

Answers


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.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.