Author Topic: Keeping Widgets anchored to GameObjects on-screen  (Read 1412 times)

capitalj

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 88
    • View Profile
Keeping Widgets anchored to GameObjects on-screen
« on: March 29, 2014, 07:31:27 PM »
Hi,

I'm using the anchoring of UIWidgets to anchor to GameObjects (like characters). Is there any way to have the widget stay on screen even if the GameObject itself is off-screen? So if I move the camera so that the GameObject is off-screen to the right of the camera, the widget will just stay along the right edge of the screen.

I've done this type of thing when manually creating code to follow objects with NGUI elements before this new anchoring system, so just wondering if there's a easy way to do this without having to write brand new anchoring code? of if there's an example script of this already out there.

-JJ

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Keeping Widgets anchored to GameObjects on-screen
« Reply #1 on: March 30, 2014, 07:18:31 AM »
No, there is no built-in way to restrict something anchored to remain on the screen.