Author Topic: UI Root scale  (Read 5909 times)

in2repid

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
UI Root scale
« on: January 16, 2013, 09:42:37 AM »
Is it expected behavior that my UI Root automatically has a local scale of 0.002604167?

UI Root settings are:
Automatic: false
Manual Height: 768
Minimum Height: 768
Maximum Height: 768

I just want to ensure I'm not doing something wrong somewhere, since I'm having to offset child items manually (z / 0.002604167) to ensure they show in my camera properly, (and this feels like I'm doing something wrong).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI Root scale
« Reply #1 on: January 16, 2013, 10:47:35 AM »
Yes.

2 / 768 = 0.0026

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: UI Root scale
« Reply #2 on: January 16, 2013, 03:06:00 PM »
Don't offset child objects manually like that. If you have things in an atlas, it won't make a difference anyway, since UIPanel batches it together based on the Depth setting on the widgets.

Only with multiple panels does it start to make sense to mess with the Z.

And since it's children, they use the local position, which inherits their parent's scale; ie +1 local == z/0.002... global

in2repid

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: UI Root scale
« Reply #3 on: January 16, 2013, 09:51:26 PM »
Yep, I'm adjusting z on multiple panels.  It sounds like all is good, then.  Thanks for the confirmation!

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: UI Root scale
« Reply #4 on: January 17, 2013, 04:50:32 AM »