Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Decco on December 11, 2014, 10:14:49 AM

Title: Make UIPanel.GetWindowSize() public
Post by: Decco 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 ;-)
Title: Re: Make UIPanel.GetWindowSize() public
Post by: merichuel on December 11, 2014, 10:30:02 AM
Why can't you make them yourself public?
Title: Re: Make UIPanel.GetWindowSize() public
Post by: Decco 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. ;-)
Title: Re: Make UIPanel.GetWindowSize() public
Post by: ArenMook on December 12, 2014, 11:50:47 PM
Sure.