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.

Topics - wallabie

Pages: 1 2 [3] 4
1. Got a ScrollList with a Grid, Alphabet, Positional ordering.
2. How to do an InsertAtIndex() or getItemAtIndex()

Another separate question:
3. In noticed that the grid has a custom ordering, is there an example showing how to use this feature?

Is there a good reason why the new delegate system not adding parameters to the CallBack() function ?  Looking through the code to figure out how the parameters are being supported, one has to say that it is definitely not easy to follow.  Can you please explain what the reason for not adding the parameters to the callBack function? 

NGUI 3 Support / Ordering items in a horizontal scrollview.
« on: April 06, 2014, 07:56:20 AM »
I've got the following:

   Grid (sorting horizontal)

Items are being added to the Grid dynamically.
In the scrollview, the items are being randomly displayed.  How to keep the ordering ?

NGUI 3 Support / Scrollview SelectedItem property ?
« on: April 05, 2014, 06:29:41 AM »
I have a Scrollview photo gallery. 

1. When user clicks on a photo, the photo is highlighted.
2. Is there a SelectedItem property of the Scrollview that lets me know which photo item was selected ?

NGUI 3 Support / Comparision of NGUI over new uGUI
« on: April 02, 2014, 12:03:26 AM »
Hi everyone,

I would like to start a discussion about something that's probably on everyone's mind at the moment.  NGUI and new uGUI.  Seems to me that both are very similar, so what is the advantage of using NGUI over uGUI ?  I already own NGUI but to for new users, what is the reason to  pay $95 for NGUI when uGUI is Free.  I am playing devil's advocate to get ideas of the compelling difference between the two.  Please feel free to contribute to this discussion.


I'm trying to add items to a scrollview that has a Grid.  The new items are being added by instantiating a prefab and then parenting to the Grid.  The problem is that the scrollList does not update to show the new added item.  I have a feeling that this is not the correct way to add items dynamically to the scrollview.  What is the recommended way to do this. 

This is another use case of trying to make an NGUI component data aware to dynamically changing data.

I have the following code:


   public void onPopupChanged()
      Debug.Log("onChanged callled");

1. In the onPopupChanged(), I would like to get the reference to the popup Go.
2. Is there a way to send some parameters to the call back function when the onChange happens ?

Perhaps this is not a proper use of EventDelegate.  So my question is how can I achieve the above 2 items when the popupList changes.

Coming from a background in Adobe Flash and Flex, I am finding NGUI to be very very painful.  The architecture was not designed to be data driven.  It is starting to add databinding, but still lacking the idea of a DataProvider.  For example, the popupList onChange returns a string and if we wanted to know the ID of the selected item, then we have to do an URL encode on the label's name. To programmatically set the popupList to a particular selection is also not so easy because it's architecture was not built as a data driven GUI.   

Even though Unity's GUI system is not very performant, it's strong point is that it was built as a data driven GUI system which allows for great flexibility.  On the other hand, NGUI was built with graphical performance but lacks the data driven aspect of a modern GUI system.

Since the new uGUI is based on NGUI for performance, it also need to take care not to lose the data driven features.  I understand that the new generic data binding system is in 3.5.6.  This is great, but data binding without Data Providers is still half the solution of a truly modern GUI system. Since we've waited for over 2 years for the new uGUI, please give us something that's worth waiting for.

Here is how Flex works with data providers.

NGUI 3 Support / Programmatically set PopupList option.
« on: March 29, 2014, 04:53:12 AM »
How to programmatically select an popupList item?

NGUI 3 Support / PopupList data structure
« on: March 26, 2014, 12:59:02 AM »
I have a popuplist with a list of colors.
when the user selects a color from the list, I would like to make a sprite in another GO change its color.

Seems that the UIPopupList.current.value is only a string. 

1. How to send a custom data structure instead of a string ?

NGUI 3 Support / PopupList onChange firing twice.
« on: March 26, 2014, 12:17:04 AM »

I'm doing the following, and it's firing twice for each change:

popupList.onChange.Add(new EventDelegate(OnSelectionChange));

   public void OnSelectionChange()
      Debug.Log("popupList.value="+ popupList.value);

NGUI 3 Support / ETA on Databinding
« on: March 25, 2014, 04:48:58 AM »
Is there an ETA on Databinding?


NGUI 3 Support / UIToggle component Group variable management.
« on: March 24, 2014, 02:07:18 PM »
I am using quite a lot of UIToggle components in my app and running into an issue of managing the Group variable.  For example, I have created groups 1- 10.  When the app is running, other UIToggle comps are dynamically created.  As the app grows, it's  a bit too much to have to keep track of which group number belongs to which UIToggle comp.

Would be great if there were an option in the UIToggle comp to specify the parent GO that this UIToggle comp belongs to.  This way, I can create a dummy GO to hold all of the children UIToggle comps and do not have to worry about the group number.   

Having to specify a group number is like a global variable which we have to manage.  Using the parent-child relationship creates automatic containment and therefore no need to worry about which numbers to assign.

NGUI 3 Support / Scrollview with clickable buttons not scrolling.
« on: March 24, 2014, 02:19:58 AM »
On IOS I'm trying to duplicate a basic horizontal scrollview for photos viewing.

1. I have a horizontal scrollview
2. inner items are icons of photos that the user can click to select (implemented as image buttons)
3. Buttons work as expected when interacting.
4. Not able to scroll the scrollview when swiping.
5. When not using buttons, and only image sprites, then scrolling works.
6. It seems that the scrollview component is not able to differentiate between a touch/drag or swipe as opposed to touch to select.

Video link:

Is there a way to do this in a performant way on Mobile with NGUI?

Pages: 1 2 [3] 4