Author Topic: HUD Text z axis  (Read 4942 times)

Tripwire

  • Full Member
  • ***
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 163
    • View Profile
HUD Text z axis
« on: January 04, 2014, 04:59:52 PM »
Hi,

Is it possible to adjust the Z axis of the HUDText labels? I'm using NGUI 2.7.0 and my HUD labels are sometimes showing below an object.

Thx!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: HUD Text z axis
« Reply #1 on: January 05, 2014, 09:21:36 AM »
You could upgrade to NGUI 3, where everything is based on depth, not Z. Short of that, you will need to modify the HUDText code.

Tripwire

  • Full Member
  • ***
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 163
    • View Profile
Re: HUD Text z axis
« Reply #2 on: January 05, 2014, 12:45:41 PM »
Hi Arenmook,

I'm not in the position to upgrade to NGUI 3 because our project is almost finished. What code should I add/change to de HudText to change the Z axis?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: HUD Text z axis
« Reply #3 on: January 05, 2014, 05:22:13 PM »
Just look for the code where it sets the transform's position. I can't point you to a specific line because NGUI 2.7 stuff is no longer supported.