Author Topic: BUG with new Unity 4.3 in UILabel Effect  (Read 5084 times)

budwiz

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
BUG with new Unity 4.3 in UILabel Effect
« on: November 25, 2013, 08:05:08 PM »
With new Unity 4.3 installed, I tried to add a label, then apply an effect.
With an effect selected (shadow or outline), the offset fields cannot be selected, there is somehow a colour picker in that space. In addition you cannot change effect back to "None", because this filed cannot be selected as well! Its a bit messed up.
See attached screenshot.

Can you please tell me what script and what to change to get it to work normal again please.
I am using NGUI 2.7 since its an old unfinished project (TOO HUGE to convert to 3.x for this project).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: BUG with new Unity 4.3 in UILabel Effect
« Reply #1 on: November 25, 2013, 08:14:36 PM »
NGUI 2.7.0 predates Unity 4.3, which is why you're seeing that issue. The problem doesn't occur on the 3.X cycle. I'd suggest looking at the code in 3.X for the label inspector, but it uses serializable properties there while 2.7 does not, if I recall correctly. So... I suggest searching for the line that draws the "Distance", and adding a GUILayout.Space(16f); above it.

budwiz

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: BUG with new Unity 4.3 in UILabel Effect
« Reply #2 on: November 25, 2013, 09:23:40 PM »
That did it:)

If someone else wonder what to do, then here is what I did:
1) Find the script "UILabelInspector.cs"
2) Search for the code line: "GUILayout.Label("Distance", GUILayout.Width(70f));"  (somewhere around line 100)
3) Add this line above it: "GUILayout.Space(16f);"

The code section should now look like this:
   ...
   if (mLabel.effectStyle != UILabel.Effect.None)
   {
      GUILayout.Space(16f);
      GUILayout.Label("Distance", GUILayout.Width(70f));
   ...

RearAdmiral

  • Guest
Re: BUG with new Unity 4.3 in UILabel Effect
« Reply #3 on: December 09, 2013, 01:15:48 PM »
Thank you - just encountered this as well, and the patch-fix worked nicely.

thelemonpeople

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: BUG with new Unity 4.3 in UILabel Effect
« Reply #4 on: January 21, 2014, 10:49:07 AM »
AAaaaah Thanks guys,

Encountered this today and freaked out ha ha. Back to work now (^_^)//