-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Demo seems broken in Android and Unity 5.3.5f1 #11
Comments
I am experiencing the same issue with Unity 5.3.4f1 / Android 6.0.1 Unity input works fine until the native text box is created. It then seems that all Unity input is disabled. I don't see any errors in my logcat logs. on text box open 05-27 10:45:12.529 1232 1232 I Keyboard.Facilitator: onFinishInput() on text box close 05-27 10:45:15.301 1232 1232 I Keyboard.Facilitator: onFinishInput() |
Turns out the issue is part of the build process, specifically the AndroidManifest.xml file. It is not being included in the build when the plugin is imported normally. It seems like the default import process puts the plugin's files into a folder called NativeEditPlugin and any android files into Assets/NativeEditPlugin/Plugins/Android. According to https://issuetracker.unity3d.com/issues/library-folder-not-recognised-as-a-library-outside-of-assets-slash-plugins Android library folders are, by design, not recognized by Unity unless they are in Assets/Plugins/Android. So, steps to resolve seems to be move the contents of /Assets/NativeEditPlugin/ into /Assets/, save the project, then rebuild. The default import location should be updated to fix this issue. |
Thanks for fix. After the fact I ran into the issue of having to merge multiple manifests from different plugins. A bit of a pain but definitely workable. |
I seem to be having the same problem as you 2. That once an inputfield is displayed i can only interact with that field and not the rest of my UI. I tried moving the files out of /Assets/NativeEditPlugin/ into /Assets/ but I am still getting the same results. |
Yes I do have a already have a manifest file at /Assets/plugins/androind. I added the ForawrdNativeEventsToDalvik meta-data field.
I am also using unity 5.3.1 |
Try replacing the com.unity3d.player.UnityPlayerActivity enclosure with this
|
Thank you so much that seems to get it working. |
Awesome 👍 |
It work for me but I am having trouble with another pluggin I implemented, for pick image. Any ideas that could help me? Thanks |
I'm struggling with this as well in Unity 5.4 - I created a brand new project only containing this and if there's any NativeEditBoxes in the scene I can only interact with those and not anything else. Can any of you get the demo scene running in 5.4? Thanks |
@Aizee Do you have any solution that works with Unity 5.4? That version dropped support for
|
Our fork works now on Unity 5.4: https://github.com/YousicianGit/UnityNativeEdit. |
Only the Native Text Boxes work in the demo While the buttons and the regular Text Boxes don't register taps.
Looking at the logs there seems to be an error in the start routine.
05-25 16:33:55.290: I/NativeEditPlugin(22577): Found leaf view
05-25 16:33:55.290: I/NativeEditPlugin(22577): InitEditBoxPlugin okay
05-25 16:33:55.508: E/NativeEditPlugin(22577): EditBox not found
05-25 16:33:55.563: I/Unity(22577): AndroidJavaException: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.json.JSONObject.toString()' on a null object reference
05-25 16:33:55.563: I/Unity(22577): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.json.JSONObject.toString()' on a null object reference
05-25 16:33:55.563: I/Unity(22577): at com.bkmin.android.NativeEditPlugin.SendUnityMsgToPlugin(NativeEditPlugin.java:148)
05-25 16:33:55.563: I/Unity(22577): at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
05-25 16:33:55.563: I/Unity(22577): at com.unity3d.player.UnityPlayer.a(Unknown Source)
05-25 16:33:55.563: I/Unity(22577): at com.unity3d.player.UnityPlayer$b.run(Unknown Source)
05-25 16:33:55.563: I/Unity(22577): at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in :0
05-25 16:33:55.563: I/Unity(22577): at UnityEngine.AndroidJNISafe.CallStaticStringMethod (IntPtr clazz, IntPtr methodID, UnityEngine.jvalue[] args) [0x00000] in :0
05-25 16:33:55.563: I/Unity(22577): at UnityEngine.AndroidJavaObject._CallStatic[String](System.String methodName, System.Object[] args) [0x00000] in :0
05-25 16:33:55.563: I/Unity(22577): at UnityEngine.AndroidJavaObject.CallStatic[String] (System.String methodName, Sys
Any thoughts as to what the issue might be?
The text was updated successfully, but these errors were encountered: