Author Topic: Move whole gui screen  (Read 2384 times)

Malzbier

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 93
    • View Profile
Move whole gui screen
« on: September 26, 2012, 06:24:05 AM »
I need to move the whole GUI screen complete off-screen.
The problem is how to move the whole screen?
I tried:
Moving the UIRoot -> Faild because the camera is underneath the UIRoot.

Packing all panels onto an empty gamobject underneath the camera and move this-> dos not work because the whole GUI is constructed with UIAncor.

Putting the  empty gamobject  the panel and all widgets  underneath paralel to the gui camera ->  dos not work because the whole GUI is constructed with UIAncor.

So its looking like i need some help.

lime-green.at

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 60
    • View Profile
Re: Move whole gui screen
« Reply #1 on: September 26, 2012, 09:25:32 AM »
Tried moving the panels?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Move whole gui screen
« Reply #2 on: September 26, 2012, 10:23:21 AM »
You need a game object underneath UIAnchor. This game object will have the rest of the UI parented to it, and it's the object you should move.

Malzbier

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 93
    • View Profile
Re: Move whole gui screen
« Reply #3 on: September 26, 2012, 11:04:59 AM »
The problem is that i have not one or two ... UIAnchor over the whole GUI , i have nearly every Button and Widget with his own UIAnchor script so that i have a Resolution and  aspect ratio independent interface.

If i had only one UIAnchor that i wouldn't be posting here :)

@
axm0nky : I can move the panel as much as i like , because the widgets are not parented to the Pannel , but to the camera / screen.