Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: johns on May 12, 2014, 02:25:11 AM
-
Hello, I've noticed a few anchoring bugs.
Setup - I have a parent UIWidget and a few child UISprites in it. The children have "advanced" anchoring mode enabled.
The bugs:
1. If only two anchors are setup (e.g. left and bottom) and linked to according sides of the parent object (left and bottom as well), then resizing the parent object will resize the child sprites as well (however they should stay the same, because no opposing sides are anchored).
2. Changing the "dimensions" of the parent widget by typing a value doesn't update the child objects correctly (anchored to it). Only dragging its corners in the editor and sliding the "dimensions" value in the inspector work.
Thank you.
-
1. If you don't anchor some side then it will stay in place where it was left -- meaning it will behave as if it's anchored to the parent. If you want the widget to stay the same size, then you should anchor all sides to the same values (left to left, right to left, bottom to top, top to top for example).
2. Run time or edit time? If it's edit time then that might be a minor bug that needs to be fixed.
-
Yes, the second issue is in the editor.
-
All seems to work fine here... I tried creating a pair of widgets and anchoring the child widget to the parent's bottom-right corner, and no matter what I do to the parent widget, the child updates accordingly. Even when I try to set the dimensions manually by typing the values in inspector.