- Home /
Question by
onevcat · Jun 11, 2011 at 08:43 AM ·
iossendmessageloadimage
iOS NSData to Unity, and LoadImage from the data
I have already get a NSData instance of an UIImage like this:
UIImage *myImage = [UIImage imageNamed:@"pic.png"];
NSData *imageData = UIImagePNGRepresentation(myImage);
Now I want to send the data to Unity and get the image.
Is there a possible solution to send "imageData" to Unity and use the function: Texture2D.LoadImage to get this image? I wonder whether the method "UnitySendMessage" in XCode can send this imageData to Unity?
Thanks for any idea.
Comment
Even I am trying to do the same. Do you have a solution to this now?