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

Pages: [1]
1
NGUI 3 Documentation / Re: UITable
« on: December 05, 2014, 06:55:19 AM »
There must be something else there other than the label, or the label's width and height is actually much larger than what you suggested. I'd have to see what it looks like in the scene view. Why is that header a part of the table anyway?

I edited my question, if you could have a look again :)

2
NGUI 3 Documentation / Re: UITable
« on: December 04, 2014, 02:49:53 PM »
I am having some issues with the UITable as you can see in the image:



I want to add this title to the table but for some reason a huge space is added after it before the next element. This space also changes depending on the number of elements that follow. Any idea why this happens?

The pivot and the cell alignment of the table are both set to "top".

The first object is just a Label and it's size is the same as the letters you see.

Here is how the table looks without the label in it:



EDIT:

Here is the scene view:



and the structure in the hierarchy:



"Label" is just a UILabel gameobject. Note that "wordgrid" is actually an UITable, just haven't changed the name.

The reason why I added it to the table rather than to place it on the same level as the table is that the scroll view kept pushing the label down everytime I repopulated the table.

also here's how the table settings look like:



Hope this makes it clearer :)

3
NGUI 3 Documentation / Re: UIGrid
« on: December 04, 2014, 08:00:13 AM »
You are right ^^ Thank you :)

4
NGUI 3 Documentation / Re: UIGrid
« on: December 02, 2014, 02:16:09 PM »
Haven't seen this asked so I hope it's not repeated.

Is there any way to create a grid with non-uniform elements and make them stick to one after the other?

To expand a bit on the question:

I have a vertical grid, with elements of different heights and I want them to appear one right after the other. This would be extremely simple if all the elements had the same height but it seems that a the ngui grid cannot deal with elements of different sizes?

Would I have to customize the script in order to achieve this?


Pages: [1]