Author Topic: UIInput on iOS and Android  (Read 8484 times)

Karan

  • Guest
UIInput on iOS and Android
« on: July 09, 2012, 06:30:25 AM »
Hello,

I'm looking for a GUI asset for my project and found that NGUI is very interesting.
Currently, I use the free one (Version 2.0.7c) to try the features in my project.
One feature I need is input text with on Screen keyboard. I try to use label with UIInput but it doesn't work.
It work well in debug and in PC but not for both device.
The Tutorial 9 is does not work as well.

These are the problems

- Android: It doesn't call on-screen keyboard when I touch but it active already.
- iOS: It cannot be build and show this on log

Cross compilation job Assembly-CSharp.dll failed.
UnityEngine.UnityException: Failed AOT cross compiler: /Applications/Unity/Unity.app/Contents/BuildTargetTools/iPhonePlayer/mono-xcompiler --aot=full,asmonly,nodebug,static,outfile="Assembly-CSharp.dll.s" "Assembly-CSharp.dll"  current dir : /Users/Tonytoons/GUITest/Temp/StagingArea/Data/Managed
 result file exists: False
stdout: Mono Ahead of Time compiler - compiling assembly /Users/Tonytoons/GUITest/Temp/StagingArea/Data/Managed/Assembly-CSharp.dllThe following assembly referenced from /Users/Tonytoons/GUITest/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll could not be loaded:     Assembly:   Assembly-CSharp-firstpass    (assemblyref_index=2)     Version:    0.0.0.0     Public Key: (none)The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/Users/Tonytoons/GUITest/Temp/StagingArea/Data/Managed/).Could not load file or assembly 'Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.Failed to load method 0x600001f from '/Users/Tonytoons/GUITest/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll'.
stderr:

  at UnityEditor.MonoProcessUtility.RunMonoProcess (System.Diagnostics.Process process, System.String name, System.String resultingFile) [0x00000] in <filename unknown>:0
  at UnityEditor.MonoCrossCompile.CrossCompileAOT (BuildTarget target, System.String crossCompilerAbsolutePath, System.String assembliesAbsoluteDirectory, CrossCompileOptions crossCompileOptions, System.String input, System.String output, System.String additionalOptions) [0x00000] in <filename unknown>:0
  at UnityEditor.MonoCrossCompile+JobCompileAOT.ThreadPoolCallback (System.Object threadContext) [0x00000] in <filename unknown>:0
UnityEditor.MonoCrossCompile:CrossCompileAOTDirectoryParallel(BuildTarget, CrossCompileOptions, String, String, String)
PostProcessiPhonePlayer:PostProcess(BuildTarget, String, String, String, String, String, String, String, BuildOptions, RuntimeClassRegistry)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

Do I need to set some parameter and please correct me if I miss some point.

PS: My unity version is 3.5.2f2

PhilipC

  • Guest
Re: UIInput on iOS and Android
« Reply #1 on: July 09, 2012, 09:34:22 AM »
The free version i'm pretty sure doesnt work on a device due to use wrapping key functionality in the dll and compile it for PC only. I'm guessing this is where those errors are coming from.

AndyGFX

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 24
    • View Profile
    • AndyGFX
Re: UIInput on iOS and Android
« Reply #2 on: September 04, 2012, 02:57:05 PM »
I have implemented working text input, but when is released on adroind device, entered text from virtual keyboard after done, isnt included to NGUI input text field. Is it a bug or i am again forgot call any function to transfer text to textfield?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIInput on iOS and Android
« Reply #3 on: September 04, 2012, 04:10:45 PM »
Try compiling one of NGUI examples that has a text edit field and see if you get it to happen here. Works fine for me using Unity 3.5.5 compiling for a Samsung Galaxy S3 phone.

yalnazov

  • Guest
Re: UIInput on iOS and Android
« Reply #4 on: October 22, 2012, 05:20:01 AM »
Hi guys,

i am just evaluating NGUI for a current project.
I am currently facing the problem that the software keyboard on a mobile device is not showing up after tapping on an input field.
I just built the example 12(Chat Window) with Unity3D 3.5.6f4 and the last free version of NGUI.
Device is Galaxy S3.
Is this supposed to work with the free version of NGUI? I really look forward to buy NGUI pro licence, but currently this problem stops me from that.
Thanks for your support.

Divya Talluri

  • Guest
Re: UIInput on iOS and Android
« Reply #5 on: October 22, 2012, 05:57:47 AM »
hey for this u have to go for full version, the virtual keyboard will not get with the free version uiinput text..:)

yalnazov

  • Guest
Re: UIInput on iOS and Android
« Reply #6 on: October 22, 2012, 06:39:25 AM »
Thanks Divya. I will go directly with the full version as you suggested.