Author Topic: Make UIPanel.GetWindowSize() public  (Read 4245 times)

Decco

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 1
  • Posts: 20
    • View Profile
Make UIPanel.GetWindowSize() public
« on: December 11, 2014, 10:14:49 AM »
Hello,

Can you make UIPanel.GetWindowSize() public, as UIPanel.GetViewSize() ?

I'm doing some anchoring math with constrained panel and I need those value.

Thank you ;-)

merichuel

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Make UIPanel.GetWindowSize() public
« Reply #1 on: December 11, 2014, 10:30:02 AM »
Why can't you make them yourself public?

Decco

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 1
  • Posts: 20
    • View Profile
Re: Make UIPanel.GetWindowSize() public
« Reply #2 on: December 12, 2014, 10:10:36 AM »
I'm not stupid, I made it public myself in my project.

It's just a little change request to be public by default. So you don't need to change it every time you update NGUI.
And I'm sure it will be usefull for all the community. ;-)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Make UIPanel.GetWindowSize() public
« Reply #3 on: December 12, 2014, 11:50:47 PM »
Sure.