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

Pages: [1]
NGUI 3 Support / Block events after button click
« on: April 02, 2014, 04:10:32 AM »
Hi everybody,

i am sorry if this question was already answered but i didn't find it with the search function.
So i have these buttons that play a tween and then disappear but i don't want the user to be able to press another button while the tween is playing.
Is there a possibility to tell ngui to not process touch events?

Best regards


NGUI 3 Support / [Bug] Loading/Unloading of reference atlas
« on: November 19, 2012, 09:31:05 AM »

When using a reference atlas for a Widget that will be instantiated while being inactive, the replacement atlas that was used for the creation of the widget will be used instead of the current replacement atlas, this caused me quite a headache due to heavy ram usage.

How to reproduce:

- Create an HD and an SD Atlas
- Create a reference atlas and set the HD as replacement
- Create a UI with a widget, use the reference atlas for the widget
- Set the widget to inactive and create a prefab from it
- Delete the widget in the scene
- Write a script that switches the reference atlas's replacement to sd and attach it to the root of the menu
- Add some lines to the script that instantiate the widget
- Run the scene
- Select the HD atlas texture in the project folder, go to Asset > Find References in Scene, notice how the widget references the hd atlas although it shows the reference atlas as atlas and this is switched to sd
- Activate the widget, notice how now all references to the hd atlas are deleted and it now uses the correct replacement although the used atlas didn't change.


Instead of setting the widget to inactive, let it be active at the time of Instantiate but add a script to it that calls gameObject.SetActive(false) (Unity 4) or gameObject.SetActiveRecursively(false) (Unity 3.x) in the Start() function


i want to build a highscore and encounter the problem that the soft clipping somehow seems to group alle Widgets in one group and changes the alpha of all items instead of the single items, i have attached an image to show the effect. I have several other draggable panels with clipping where i don't have this kind of problem, did somebody maybe have equal experiences and came up with a solution?

Best regards


Pages: [1]