usb-serial-for-android icon indicating copy to clipboard operation
usb-serial-for-android copied to clipboard

is it suitable for UNITY

Open AlexandrVladyka opened this issue 3 years ago • 7 comments

Hello. Can I use this library for UNITY ?

AlexandrVladyka avatar Nov 15 '21 11:11 AlexandrVladyka

please check https://github.com/mik3y/usb-serial-for-android/wiki/FAQ#Does_this_library_work_with_UnityIonicCordovaXamarinApp_Inventor_development_framework

kai-morich avatar Nov 16 '21 18:11 kai-morich

Can you tell me how to interact with this library in UNITY?

AlexandrVladyka avatar Nov 19 '21 20:11 AlexandrVladyka

I am not a Unity user. Please follow instructions mentioned in Unity manual, like this and add usbSerialForAndroid folder from this repo

kai-morich avatar Nov 20 '21 10:11 kai-morich

Here is an example on how to send a command from Android to Arduino in Unity using this library, hope it helps: https://github.com/cvasquez-github/unity-android-serial-arduino

cvasquez-github avatar May 24 '22 23:05 cvasquez-github

Hello. I've implemented this library as a Unity plugin, and all is working well is the Scripting Backend in Unity is set to Mono; but, if I change it to IL2CPP (what is, actually, I need, because I need support for 64bits devices, and upload the app into Google Play), the plugin using this code is not working properly anymore. The communication speed is too slow, and I lost it just a couple of seconds after establishing connection.

Do you have any suggestions to fix it?

mspeirone avatar Mar 02 '23 18:03 mspeirone

@mspeirone did you find the solution for it? if so would you kindly share your findings? I'm also interested in using this library as an Unity plugin, with IL2CPP scripting backend. Thanks!

jhclaura avatar Sep 08 '23 01:09 jhclaura

@mspeirone did you find the solution for it? if so would you kindly share your findings? I'm also interested in using this library as an Unity plugin, with IL2CPP scripting backend. Thanks!

No @jhclaura, I didn't find the solution using this library... we finally implemented it by using our own Android plugin using Android Studio, which finally was integrated into Unity.

mspeirone avatar Oct 25 '23 19:10 mspeirone