Unity I Phone X Support

by tkyaji

Support iPhoneX by changing the drawing area of Unity.

( Crawled 15 hours ago )



Resize the drawing area of Unity and make margins above and below. You can set an image or a single color in the margin.

Before After
Before After


Import to UnityIPhoneXSupport.unitypackage


On the variables in UnityIPhoneXSupport.cs, you can make the following settings.

headerSize, footerSize

Sets the size of the margin.

headerColor, footerColor

Set the color of the margin.

headerImage, footerImage

Set the image to display in the margin. If you do not want to display the image, leave it empty. Images must be under "StreamingAssets" Directory.