Author Topic: Problem with NGUI: HUD Text  (Read 5563 times)

primus88

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 50
    • View Profile
Problem with NGUI: HUD Text
« on: June 04, 2013, 03:09:47 PM »
Hello,

I just bought the NGUI: HUD Text but I can't use it because I receive the following errors :

Assets/HUD Text/Scripts/HUDText.cs(42,16): error CS0246: The type or namespace name `UIFont' could not be found. Are you missing a using directive or an assembly reference?
Assets/HUD Text/Scripts/HUDText.cs(48,16): error CS0246: The type or namespace name `UILabel' could not be found. Are you missing a using directive or an assembly reference?
Assets/HUD Text/Scripts/HUDText.cs(22,24): error CS0246: The type or namespace name `UILabel' could not be found. Are you missing a using directive or an assembly reference?

I did no change to any script or anything.

Please help/

primus88

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 50
    • View Profile
Re: Problem with NGUI: HUD Text
« Reply #1 on: June 04, 2013, 04:03:52 PM »
Nevermind. Solved it.

Anyone has an idea why the flying text is not facing my camera ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with NGUI: HUD Text
« Reply #2 on: June 04, 2013, 09:04:59 PM »
HUDText works with a 2D UI camera by default, so the text that you're instantiating should be on 2D -- meaning there is no need to face the camera. You've also posted in the wrong forum. This forum is for NGUI support, not HUDText. :P

mikez69

  • Guest
Re: Problem with NGUI: HUD Text
« Reply #3 on: December 19, 2013, 11:09:39 AM »
I just saw this post and I am now having a similar issue…how did you solve it?

Nevermind. Solved it.

Anyone has an idea why the flying text is not facing my camera ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with NGUI: HUD Text
« Reply #4 on: December 19, 2013, 12:21:35 PM »
Likely by importing NGUI. HUDText is an extension that requires NGUI.