Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: duncanfoo on October 25, 2013, 02:53:30 PM
-
I've been trying to use a UITable in a panel attached to a 3d UI camera. When I AddChild the prefab and subsequently call Reposition on the table the added widget is not in the correct location (its at the bottom of the screen with some very strange Z values).
Am I doing something wrong, or is it not possible to use a UITable (or UIGrid) with a 3d camera?
-
Table and grid has nothing to do with the type of camera used to draw them. Grid uses only the cell width and height you specified, and table uses the dimensions of each of the content items. Off the top of my head I don't remember whether the Z value is kept or not, but since you said you use AddChild, it should be set to zero anyway.
-
I got this working by manually placing the table in the parent widget. I think my problem was due to the anchoring setup I had.