Author Topic: NGUI to 3d objects surface. . .?  (Read 2469 times)

3DMagicVR

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
  • Think, Analysis, and then do it, can you do it?
    • View Profile
NGUI to 3d objects surface. . .?
« on: July 15, 2014, 04:07:44 PM »
Hello there, I have using ngui for quite lot time and this question emerge:
- NGUI can be used to place guis over a surface like EZ Gui makes it? -

This is, using this tool to place a control panel or a series of info windows or simply a button over a wall, may be this will sounds not to logical but I think that this could be important in some point over a working project that want to implement this tool on that.

I check all the demo files that comes with the package and no one shows that quality, if the developer it's trying to introduce this tool into unity to be the main gui manager I think he need to re-considerate this kind of option.

thanks for your time and have a nice day.  8)
3D Magic VR - Living in a digital world -
3D Modeler, Digital Animator and 2D Designer.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI to 3d objects surface. . .?
« Reply #1 on: July 15, 2014, 11:32:22 PM »
Create a game object and attach UIPanel script to it. You can now add widgets below it like any other UI -- but note that they will be huge in size. You will likely want to scale the UIPanel first -- try (0.01, 0.01, 0.01).

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: NGUI to 3d objects surface. . .?
« Reply #2 on: July 16, 2014, 08:21:03 AM »
It's just a matter of matching a panel / widgets to fit with the surface you want to display it on. If you want it to rotate with it, like say a TV screen that gets moved around, the easiest way is to have the panel in the subhierarchy of the rotating object. Just be careful of scaling, since the transform sizes won't be pixels anymore.

3DMagicVR

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
  • Think, Analysis, and then do it, can you do it?
    • View Profile
Re: NGUI to 3d objects surface. . .?
« Reply #3 on: August 13, 2014, 12:43:39 PM »
It's just a matter of matching a panel / widgets to fit with the surface you want to display it on. If you want it to rotate with it, like say a TV screen that gets moved around, the easiest way is to have the panel in the subhierarchy of the rotating object. Just be careful of scaling, since the transform sizes won't be pixels anymore.

Bad answer, the UI component automatically moves to the main or existent UI Hierarchy, NGUI does not have the quality to make that without having an UI hierarchy settled.

Easy GUI Makes it without to much complication, to bad for NGUI 0.0p -1.
3D Magic VR - Living in a digital world -
3D Modeler, Digital Animator and 2D Designer.