Unity iPhone中黑框旋转的解决方案

void Awake

{

    iPhoneKeyboard.autorotateToPortrait = false; 

    iPhoneKeyboard.autorotateToPortraitUpsideDown = false; 

    iPhoneKeyboard.autorotateToLandscapeRight = false; 

    iPhoneKeyboard.autorotateToLandscapeLeft = false;

}

你可能感兴趣的:(iPhone)