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

Pages: [1]
1
NGUI 3 Support / Re: Grid reposition problems on dynamic menu
« on: May 14, 2014, 06:25:45 PM »
It seemed that i need tried adding things to a grid/scrollview BEFORE its first start.
Making the function adding the items a coroutine and putting a yield before the reposition command, fixed my issue

Now i do have a quick question, why does the grid init on start, not on OnEnabled?

2
NGUI 3 Support / Re: Grid reposition problems on dynamic menu
« on: May 13, 2014, 06:52:30 AM »
Could you please share how you fixed this?
I'm having some issues with this myself.

I've made a popup window, that should show a scrollview filled with bars.
To "spawn" the popup window, i call Enable on the script that controlls it, which sets the gameObject.setActive(true)
After this i spawn the bars using the NGUITools and do the grid.Reposition();
And while they do reposition, they have wierd spacing between them.

This happens every time i close and reopen the window (active false and true again)
However if i do grid.repositionNow = true; Instead. The wierd spacing only happens the FIRST time it opens.
And looks like it should the next time.

I'm very interested in how you worked around this.

Pages: [1]