Author Topic: Layout learning curve  (Read 2472 times)

jz87

  • Guest
Layout learning curve
« on: August 24, 2012, 01:55:02 PM »
I've been using NGUI for a few months now and I'm finding the learning curve for layout is steeper than I expected. I spend a lot of time trying to figure out how to position elements exactly where I want on screen. One of the problems is that the UIAnchor control doesn't position relative to any parent except the screen as a whole. Also, UIAnchor offsets are in fractions of screen size, I often want to position in pixel coordinates.

I guess what I'm asking for is some kind of cookbook for common problems like relative/absolute positioning in both screen and pixel coordinates. Things like margin, padding. Things like matching borders, backgrounds, colliders to the size of content.

PhilipC

  • Guest
Re: Layout learning curve
« Reply #1 on: August 24, 2012, 02:31:52 PM »
If you update your issue of it only anchoring to the screen will be fixed :). A couple version ago we allowed for widgets to be anchored to other widgets or panels.

As for the "cookbook" we really dont have that but feel free to always use the forums for help/ understanding. We have alot of great members who offer up there suggestions sometimes quicker then Mike or I.