Author Topic: NGUI element size/bounds in Worldspace  (Read 3137 times)

ngui

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 29
    • View Profile
NGUI element size/bounds in Worldspace
« on: January 18, 2014, 02:20:38 AM »
I find when I query the size/bounds/extents of a UIWidget or UIPanel (i.e., panel.GetViewSize()) its in ScreenSpace.
How can I derive the WorldSpace bounds?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI element size/bounds in Worldspace
« Reply #1 on: January 18, 2014, 02:28:13 AM »
UIWidget.localCorners, UIWidget.worldCorners, UIPanel.localCorners, UIPanel.worldCorners.

ngui

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 29
    • View Profile
Re: NGUI element size/bounds in Worldspace
« Reply #2 on: January 18, 2014, 02:47:05 AM »
Thank you!