Author Topic: [SOLVED] HUDText : Label not moving up above object?  (Read 3423 times)

Somoraze

  • Guest
[SOLVED] HUDText : Label not moving up above object?
« on: August 03, 2013, 02:42:10 PM »
Hi,

I cannot make the HUDText move above the target, could you please provide some help?

The examples from the package cannot work because it says "script missing" below HUD  :-\

As in the tutorial, I have got a HUD objet with a HUDText and its 2 scripts (HUDText and UIFollow Target), and the target set. I think I saw in one of your video the same issue, but I cannot find a "camera panel" : so far, I have got the 2 cameras in the UIFollow script, and the label follows the cube correctly. But it does not do any effect...

Any help would be very appreciated  :)

Thanks
« Last Edit: August 04, 2013, 05:16:41 AM by Somoraze »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [HUDText] Label not moving up above object?
« Reply #1 on: August 03, 2013, 02:53:28 PM »
Script missing? On what? Are you sure you imported HUDText correctly? Try importing it fully into a new project.

"Camera panel" is a helper window opened with NGUI via the NGUI menu up top.

What "effect" are you talking about?

Somoraze

  • Guest
Re: [HUDText] Label not moving up above object?
« Reply #2 on: August 03, 2013, 04:32:23 PM »
Sorry about that, I found the camera panel and the examples work fine. But not the effect with my HUDText object.

I added a HUD empty object, and I attached a HUDRoot script to it, then I added a HUDText with the 2 scripts HUDText and UIFollow, and a label as a child. The label goes to the cube as expected, but nothing is happening.

I put enclosed some pictures

Thanks for your help

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [HUDText] Label not moving up above object?
« Reply #3 on: August 04, 2013, 12:13:21 AM »
"nothing is happening" -- what should be happening? Do you actually ever call HUDText.Add function?

Somoraze

  • Guest
Re: [HUDText] Label not moving up above object?
« Reply #4 on: August 04, 2013, 05:16:07 AM »
Thanks ArenMook, indeed it works with the Add function, I misunderstood the effect had to be trigger from the script. Thanks for the answers