Author Topic: How to anchor the entire GUI to my only camera?  (Read 3655 times)

alexh0101

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 30
    • View Profile
How to anchor the entire GUI to my only camera?
« on: August 14, 2014, 08:36:53 AM »
Hi,

I want to move my one and only camera to move around, but I want all the elements of NGUI to stay pegged to the Camera.

Putting the whole UI Root as a child of the camera didn't work.
Putting the camera as a child of UI root didn't help either.

My camera (with UICamera attached to it) was outside of UIRoot and working properly.

How to make sure that all the NGUI elements stay fixed to whatever the camera is seeing?
Not sure which parameters I have to change

Thanks in advance

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to anchor the entire GUI to my only camera?
« Reply #1 on: August 15, 2014, 07:11:06 AM »
You shouldn't be moving the UI camera at all if you have things anchored to it. At best you'll get jitter. At worst it just won't work properly. Unless your UI is 3D (in which case you probably shouldn't be doing any kind of anchoring anyway), you should be using separate cameras.