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 - Ony

Pages: [1]
1
NGUI 3 Support / NGUI is awesome.
« on: July 09, 2016, 12:09:56 AM »
I come here mainly when I have troubles, so I thought I would change that a bit and post to say how much I absolutely love NGUI. It's been a crucial part of my work flow for a couple of years now,and I'm not sure what I'd do without it. Thanks ArenMook for all your hard work, it's very much appreciated. :)

2
Yup, getting this now using v. 5.3.5

3
I'll try it on a fresh project and see if it still happens. In the mean time I solved it for now by adding a "-" as the last option in each popup list, then making that the default instead of the first entry. That seems to work so far, other than there being a blank entry at the end of each list.

4
Nope, nothing is setting the value. I just searched through my whole code base to see if I had anything in there doing that and there's nothing. The popup list has been working fine for over a year and only broke when I updated NGUI the other day. There have been no changes done in that section of my code.

5
I've updated to NGUI 3.99 and my popup lists are no longer working correctly. They've been fine for over a year so I'm not sure what happened.

Basically, when I click an item in the popup list, if it's the first item in the list, it won't register an event. If I click a different item, it registers, and then I can click any of them and they'll work. The first item, in other words, won't register an event until another item is clicked.

Here's the code I've got on the popup list to intercept the clicks:

  1. using UnityEngine;
  2.  
  3. public class UIpopupList_For_Editor : MonoBehaviour {
  4.  
  5.         private UIPopupList popupList; 
  6.         public morphHandler theMorphHandler;
  7.  
  8.  
  9.     void Awake()
  10.     {
  11.         UIPopupList popupList = GetComponent<UIPopupList>();
  12.                 EventDelegate.Add(popupList.onChange, SetSliderWindow);
  13.     }
  14.  
  15.        
  16.         public void SetSliderWindow ()
  17.         {
  18.                 Debug.Log("Selection: " + UIPopupList.current.value);
  19.                
  20.                 theMorphHandler.SetupMorphSliders (UIPopupList.current.value);
  21.         }
  22.  
  23. }

Nothing happens when I click the first item in the list, not even the Debug.Log.

6
NGUI 3 Support / Re: UIButton not firing on mouse 40% of the time
« on: October 13, 2015, 12:46:53 AM »
@Ony: When you turn on debugging on the UICamera, does it show the mouse hovering over the correct collider?
It does. I would think it was my code but nothing changed in my code between changing from Unity 4.x to Unity 5.x aside from the few API updates it made.

7
NGUI 3 Support / Re: UIButton not firing on mouse 40% of the time
« on: September 09, 2015, 05:09:32 PM »
I'm having this same exact problem. My buttons have been working perfectly for months in Unity 4x Pro, and I recently converted the project to Unity 5 (currently using 5.1.1f1).

Now my buttons are exhibiting this behavior. Sometimes clicking, sometimes not. When they don't click, you have to move the mouse off of the button then back on again to get it clickable. Then I can click several times in a row and then boom, back to unclickable.

Pages: [1]