16
NGUI 3 Support / Re: My Big List of Anchor Complaints
« on: February 14, 2014, 05:46:36 PM »
1) This is definitely an issue. A prime example is if I have a label that I want to sit next to a button. If I use advanced anchors to set the label's anchor left to the button's right, then suddenly the width of the label is no longer settable *despite* the fact there's no anchor right set. This also disables the resize freely, forcing the label to be a specific width (whatever it is before I set the left anchor).
I've mentioned it before, the dimensions of a widget should only be disabled if BOTH achors on that axis are used. anchoring to the right side shouldn't require me to anchor the left side to rightside+desired width, I should just be able to set the right anchor and set the dimension.x.
2) I think what you're looking for is Unity's fixed game view size, not changing how anchors work with window size. Anchors *should* adapt to whatever resolution you're using, as they do.
If you want to have a fixed window size, look at game view, in the top left you can set a fixed aspect ratio or resolution, then if you resize it won't change the ratio of the gui.
However, in the Scene view, it'll keep jumping back to some default value defined by who-knows-what. For example I have a background that stretches to fill UIRoot (fill screen), that keeps jumping to a 4:3 ratio in scene view and 16:9 in game view. which is somewhat annoying... if UIRoot looked at the Gameview dimensions as a reference when sizing the GUI that might stop?
I've mentioned it before, the dimensions of a widget should only be disabled if BOTH achors on that axis are used. anchoring to the right side shouldn't require me to anchor the left side to rightside+desired width, I should just be able to set the right anchor and set the dimension.x.
2) I think what you're looking for is Unity's fixed game view size, not changing how anchors work with window size. Anchors *should* adapt to whatever resolution you're using, as they do.
If you want to have a fixed window size, look at game view, in the top left you can set a fixed aspect ratio or resolution, then if you resize it won't change the ratio of the gui.
However, in the Scene view, it'll keep jumping back to some default value defined by who-knows-what. For example I have a background that stretches to fill UIRoot (fill screen), that keeps jumping to a 4:3 ratio in scene view and 16:9 in game view. which is somewhat annoying... if UIRoot looked at the Gameview dimensions as a reference when sizing the GUI that might stop?
