Author Topic: Left-oriented panel in 3D  (Read 2757 times)

Codewalker

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 21
    • View Profile
Left-oriented panel in 3D
« on: June 20, 2012, 06:36:16 AM »
I have created a new 3D GUI and want a panel to be always with its left side exactly at the left side of the screen (while still resizing for different resolutions). I tried to achive it with an UIAnchor, but it does not work.
the hierarchy so far is:  UI Root -> Camera -> Panel -> BackgroundSprite (should be at the left side)

How can I achive this in 3D? (with a 2D GUI it was rather simple with an anchor)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Left-oriented panel in 3D
« Reply #1 on: June 20, 2012, 12:22:15 PM »
Why doesn't it? Works fine. I just tried it to double-check. Created a new 3D UI, Added a sliced sprite, changed its pivot to left, changed anchor to left, resized the window at run time and it was glued to the left side just fine.

Codewalker

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 21
    • View Profile
Re: Left-oriented panel in 3D
« Reply #2 on: June 20, 2012, 12:43:58 PM »
hm, does it also work with different aspect ratios (16:9, 16:10) in your example? (if so, what am I doing differently  :o)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Left-oriented panel in 3D
« Reply #3 on: June 20, 2012, 12:45:00 PM »
Yeah. Works fine. Try following my steps.