How to I send a Texture2D to a connected printer in Unity for iOS

881 Views Asked by At

I have a dynamically generated Texture2D asset and I want to allow my user the ability to quickly print it out from within my Unity3D app.

I understand how this works natively with UIPrintInteractionController, And I am wondering if there is a way to accomplish this within Unity.

1

There are 1 best solutions below

0
On BEST ANSWER

Yes, it's possible. There are many ways you can do this. The easiest one is:

1) Encode your texture to byte array, JPG or PNG.

2) Write iOS native plugin, and send your byte array to native side.

3) And print it using UIPrintInteractionController.