Author Topic: Pan with mouse in the Main game Camera  (Read 2862 times)

Miguelfanclub

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Pan with mouse in the Main game Camera
« on: June 15, 2014, 02:18:47 PM »
When I put the pan with camera script on my main camera, all my panels an label texts just go at the center of the screem while playing.
Once the simulation stops, the panel and labels go to their correct place.
It works correctly without the pan with camera option (all is in place)

Am I missing something?

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Pan with mouse in the Main game Camera
« Reply #1 on: June 16, 2014, 08:10:47 AM »
Pan what camera? What script? What does it do?

Miguelfanclub

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Pan with mouse in the Main game Camera
« Reply #2 on: June 16, 2014, 08:36:54 AM »
http://puu.sh/9w1B5/3396c401cf.png

It is in one of the NGUI examples but when I use it all my labes re center in the middle of the screen while playing.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Pan with mouse in the Main game Camera
« Reply #3 on: June 16, 2014, 09:05:13 AM »
Oh... that is a very specific script written for one of NGUI's examples and is meant to rotate the camera looking at a stationary UI. This UI is supposed to be 3D UI, and it should not be anchored.