1
NGUI 3 Support / Re: iPhoneX safe area support
« on: November 04, 2017, 05:21:04 PM »
I've been playing around with this and discovered what seems to be a good alternative: changing the camera's viewport.
You can get Unity's sample safe area plugin here: https://bitbucket.org/p12tic/iossafeareasplugin
Modify it to instead set the NGUI camera's pixelRect to exactly the safe area rect, and voila - exactly correct letter boxing. It's working out great in my tests and I'm putting it into my game next.
You can get Unity's sample safe area plugin here: https://bitbucket.org/p12tic/iossafeareasplugin
Modify it to instead set the NGUI camera's pixelRect to exactly the safe area rect, and voila - exactly correct letter boxing. It's working out great in my tests and I'm putting it into my game next.
