Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: greyhoundgames on January 07, 2015, 05:08:28 PM

Title: Relative anchors greater then 1 causing editor bugs
Post by: greyhoundgames on January 07, 2015, 05:08:28 PM
So in the past I could set anchors greater then 1.0 as a relative anchor in the editor. Like to get 4 buttons in a row i could anchor 3 of them to the left most one and have their positions be 1.1, 2.2, 3.3 etc and they would space out nicely. I recently updated my NGUI from a version circa 5 months ago and now when I try to enter any value greater then 1, the editor textfield greys out and refuses to let me edit it. It still works when you do this programatically.

Any input would be appreciated.
Title: Re: Relative anchors greater then 1 causing editor bugs
Post by: ArenMook on January 08, 2015, 08:41:57 AM
You're right. Open up UIRectEditor.cs, find line 395 and 428 and comment them out:
  1. // Horizontal slider for relative values, for convenience
  2. //EditorGUI.BeginDisabledGroup(isOutside01);
  1. //EditorGUI.EndDisabledGroup();
Title: Re: Relative anchors greater then 1 causing editor bugs
Post by: greyhoundgames on January 09, 2015, 10:42:02 AM
Verified fixed, thanks so much!