mopsicus / umi

Unity mobile input (UMI) plugin for Android and iOS, allows to use features of mobile native input fields
MIT License
399 stars 92 forks source link

MobileInputHandler.cs's OnData() was not being called #3

Closed takeuphonic closed 6 years ago

takeuphonic commented 6 years ago

On iOS with Unity 2018.1.1f1.

MobileInputHandler.cs's OnData() was not being called. But Plugin.cs's OnDataReceive() was being called. It seems it was being blocked out by the below if statement.

if (plugin.Name == info["name"])

So I changed MobileInputHandler.cs's Name to return "MobileInputHandler". I don't know it this was the proper way to fix this, but it works fine now.

By the way, I love this plugin. I really needed this. Thank you.