Author Topic: Trouble creating an independent 3D UI  (Read 2444 times)

Ozale

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Trouble creating an independent 3D UI
« on: February 16, 2014, 07:36:30 AM »
G'day forum, I'm having an issue creating an independent 3D UI with NGUI.

What I'm attempting to create is a computer with an NGUI interface; I've imported a 3D model of a computer monitor into the scene, which is rendered by the usual Unity camera, and I've created an NGUI 3D UI, but this as you know is rendered by another camera. If I move the main camera, the 3D computer screen is seen from the new location as with any other object in 3D space, but the NGUI 3D UI stays fixed to the center of the screen. What I'm hoping to achieve is 'fixing' the 3D UI to the computer screen, in 3D space. Is this possible, and if so, is there any chance somebody could point me in the right direction?

Cheers lads.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Trouble creating an independent 3D UI
« Reply #1 on: February 17, 2014, 10:45:06 AM »
Create a game object on the same layer as your 3D monitor. Attach a UIPanel to it, and scale it to something small, such as 0.01. Now add widgets to it as you normally would -- ALT+SHIFT+S and such. You can position this object anywhere in your world, and it will be drawn like any other 3D object.