Author Topic: About the depth of Panel!  (Read 4492 times)

xiaoniaojjj

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 140
    • View Profile
About the depth of Panel!
« on: October 21, 2012, 08:18:11 AM »
I can adjust the depth of panel by panel.Z value. But the problem is , the panel looks will be zoom(scale) when the  z value is more bigger like -100, have any better way to adjust the depth of Panel. and not scale it? For example, i creat a Panel be used for like Alert info Window.this Panel should be top of all the Panel.  Could you give panel depth value?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: About the depth of Panel!
« Reply #1 on: October 21, 2012, 03:38:52 PM »
It will only zoom if you're using a perspective camera. Orthographic camera (2D UI) = no zooming.

xiaoniaojjj

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 140
    • View Profile
Re: About the depth of Panel!
« Reply #2 on: October 22, 2012, 12:34:54 AM »
But when i use 2D UI, It seems can't zoom automatic to fit the screen.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: About the depth of Panel!
« Reply #3 on: October 22, 2012, 03:45:08 AM »
I'm not sure what you mean, or what it has to do with 3D vs 2D UIs.

xiaoniaojjj

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 140
    • View Profile
Re: About the depth of Panel!
« Reply #4 on: October 22, 2012, 04:05:06 AM »
Thanks reply, if i use the UIRoot 2D,when i run the apk(android) on different size screen. it can't zoom by automatic to fit the Screen size. But UIRoot 3D is ok..
Or do you have better way to let the UI fit the different size screen?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: About the depth of Panel!
« Reply #5 on: October 22, 2012, 04:00:57 PM »
2D root scales itself based on the resolution, 3D root does not.

xiaoniaojjj

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 140
    • View Profile
Re: About the depth of Panel!
« Reply #6 on: October 22, 2012, 10:47:07 PM »
I try to use 2D before, i design the UI base on 1024*768, when i run the 800*480 or 480*320 , the UI would  out of the border of Screen, What i need do ??

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: About the depth of Panel!
« Reply #7 on: October 23, 2012, 01:25:50 AM »
Make your UI modular -- parts attached to the bottom of the screen, parts to the center, parts to the right side of the screen, etc.