Author Topic: Doom 3 style GUI on world objects  (Read 1946 times)

nzen

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 30
    • View Profile
Doom 3 style GUI on world objects
« on: February 07, 2013, 03:40:09 AM »
http://youtu.be/o0_kQIlJX_E?t=4m48s

Is this possible with NGUI?

EDIT: Using the Camera Tool to make the Main Camera recieve events makes buttons/etc work fine in the the world. Are there any tips on working with NGUI in this way?
« Last Edit: February 07, 2013, 03:59:46 AM by nzen »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: Doom 3 style GUI on world objects
« Reply #1 on: February 07, 2013, 10:03:27 AM »
Just create a UIPanel somewhere in your game world, then add widgets to it like you would to a normal object. Or -- the easier approach -- create your UI layout in 2D then make a prefab out of the panel. You can instantiate this panel anywhere you want in the world, and position/scale it like any other object.