Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mmalek

Pages: [1]
1
NGUI 3 Support / Re: UIInput WINRT
« on: October 10, 2014, 07:57:17 PM »
Agreed Aren. The onscreen keyboard needs to be able to popup when the user touches the Simple Edit Control.

I tried removing the "UNITY_WINRT - MOBILE" define and checked which functionalities work-
1) Simple Edit Control OnSelect appears to work consistently
2) Popup keyboard does not happen
3) Backspace functionality does not work (after bringing the onscreen keyboard up manually)

With UNITY_WINRT - MOBILE define
1) Broken- Edit control selection is inconsistent- happens infrequently
2) Working- When selection does happen the keyboard does popup
3) Working- The backspace functionality works
With a few changes I have #2 and #3 working. Just need to get #1 figured out.

I will continue to look at #1 this weekend.

Thank you!


2
NGUI 3 Support / Re: UIInput WINRT
« on: October 07, 2014, 11:46:16 AM »
Hello Aren,

Thank you for the suggestion.
A little more background-
I have 4 different NGUI buttons, a couple of NGUI checkboxes, some NGUI Sliders bars, and a single NGUI "Simple Input Field" on the same NGUI Sprite background. Every NGUI button and NGUI check box, NGUI slider bar, respond to touch without hesitation. It is limited solely to the NGUI "Simple Input Field" (UIInput) intermittently receiving the OnSelect event (gain focus) when touched.

Thank you!
Mark

3
NGUI 3 Support / Re: UIInput WINRT
« on: October 06, 2014, 11:13:39 AM »
Thank you for the reply Aren!

I would agree with you, but the issue is intermittent. The OnSelect does eventually get called (after tapping many times), the label does gain focus, the onscreen keyboard does eventually popup and the editing does work.
After debugging for a few days it appears to be definitely something either in OnCamera or UIInput.

I agree, the issue is not OS Version specific, it is Platform specific- I was comparing Windows Phone (working) with Windows 8 (Not working- UIInput intermittently gaining focus).

There are differences in the code based on UNITY_METRO.

I realize you are extremely busy, I am happy to assist you in anyway possible.

Thank you in advance!
Mark

4
NGUI 3 Support / UIInput WINRT
« on: October 05, 2014, 04:05:24 PM »
I purchased NGUI from the asset store about a month ago. I have been having issues with the UIInput.cs control on Windows 8.1. Same control works as expected on Windows Phone 8.

When touching the control on Windows 8.1 it seems like OnSelect does not always get called from UICamera.

On Windows phone the same UIInput.cs code is working as expected. Keyboard pops up, edit and backspace seem to work fine. On Windows 8.1 the UIInput.cs default code seems to lose focus, intermittently (every 20 or so touches) bring up the onscreen keyboard and gains focus, and backspace also does not work when focus is gained.

I made sure the UIInput control is top in the window level hierarchy. (Level 20)

I have tried a few things to get things working better-

I upgraded recently to NGUI 3.7.4 (issue was occurring before and after).

Added UNITY_WINRT || UNITY_METRO to the defines at the top for MOBILE (redundant as it may be)

For troubleshooting- I made some changes or commented out some of the UNITY_METRO specific code as it is making some items not function as expected-
Line 222-
public bool inputShouldBeHidden
{
   get
   {
#if UNITY_METRO
      return false; //Changed from true as do not want to hide input for Windows 8
#else
      return hideInput && label != null && !label.multiLine && inputType != InputType.Password;
#endif
   }
}


Line 618-
//#if UNITY_METRO
//                  val = "";
//#else
                  val = "|";
//#endif

Line 666-
// #if UNITY_METRO
//            string text = Input.inputString;
//            if (!string.IsNullOrEmpty(text)) Insert(text);
// #else

Line 640-
For troubleshooting just took some variables out of the mix as it is for username-
                    mKeyboard = TouchScreenKeyboard.Open(val, kt, true, false, false, false, defaultText);
                    //mKeyboard = (inputType == InputType.Password) ?
                    //    TouchScreenKeyboard.Open(val, kt, false, false, true) :
                    //    TouchScreenKeyboard.Open(val, kt, !inputShouldBeHidden && inputType == InputType.AutoCorrect,
                    //        label.multiLine && !hideInput, false, false, defaultText);

With the above changes in Windows 8.1, I am able to initially select, have keyboard popup, and edit (including backspace) the UIInput (in may case username edit control).

If I deselect (touch somewhere else on the screen) and try to come back to edit the it takes 20 or so touches to regain focus and have the keyboard pop back up.

I have been troubleshooting for a few days and need your help. Any help will be much appreciated. I have Skype available if you want.

Thank you!
Mark





Pages: [1]