Author Topic: HUDText question regarding Youtube tutorial -text overlapping.  (Read 3701 times)

WUTAI

  • Guest
HUDText question regarding Youtube tutorial -text overlapping.
« on: October 31, 2013, 02:16:25 AM »
Hi I just got HUDText and am following the youtube tutorial you guys made called "NGUI: HUD Text", that shows how to click the cube and have "something" pop up. My text overlaps when I click the cube, instead of the text pushing up.
What can I change/check to have the same effect as the tutorial?

Thanks

WUTAI

  • Guest
Re: HUDText question regarding Youtube tutorial -text overlapping.
« Reply #1 on: October 31, 2013, 05:51:46 PM »
I changed a line in HUDText.cs that seems to have worked.

FROM:
  1. offset += Mathf.Round(ent.label.cachedTransform.localScale.y);
TO:
  1. offset += Mathf.Round(ent.label.cachedTransform.localScale.y * ent.label.transform.localScale.y);      

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: HUDText question regarding Youtube tutorial -text overlapping.
« Reply #2 on: November 01, 2013, 11:12:19 AM »
That makes no sense. ent.label.cachedTransform and ent.label.transform is the same exact thing.