Author Topic: Change HUDText Position  (Read 2827 times)

Harsul

  • Guest
Change HUDText Position
« on: March 09, 2013, 05:26:41 PM »
I need to add a few HUDText at runtime on different positions. Is it possible to add into the HUDText.Add something like HUDText.Add(obj,Color,stayDuration,Position). So i can spawn them at a specific position? I tried using UIFollowTarget and change it's target but that will move all text, and that is not what im looking for.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Change HUDText Position
« Reply #1 on: March 10, 2013, 05:00:50 AM »
For each object you want to follow a 3D point you will need a separate UIFollowTarget+HUDText combo.

hexart

  • Guest
Re: Change HUDText Position
« Reply #2 on: March 19, 2013, 02:17:05 AM »
I've used multiple hud text im my scene in different places, but since I used occlusion culling to bake the scene, the first time when hud text shows up, the invisible object's hud text was in the center of the screen. But if I rotate the camera, let the other objects can be seen, their hud text back to their top.