Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: beveil on November 06, 2014, 05:07:02 AM

Title: UIGrid pivot problem
Post by: beveil on November 06, 2014, 05:07:02 AM
hi guys,my ngui version is 3.7.0
today i tried to use UIGrid to arrange my icon area and i found a problem:

i need to arrange my icons in 2 rows, and the order is from right to left(Horizonal)
so i first set the pivot to TopRight
then i set the column limit(MaxPerLine) to 4, when the icon number is over 4, the fifth icon will be set to the second row, but it under the fourth icon and i want it under the first icon.

so i checked UIGrid's private funtion ResetPosition(List<Transform> list), i found it doesn't flip horizintal. it just move all items in UIGrid with same offset.

my English is so poor, can you understand me? i just it can change like "b" to "d"(image it)
Title: Re: UIGrid pivot problem
Post by: ArenMook on November 07, 2014, 01:34:53 PM
Use a negative value for cell size. Instead of cell width of 300 specify -300 for example.