I have compiled my first scene and I noticed a little problem.I would like to use the Force aspect ratio option but that is what happens:
Unity does not take into account the presence of black bands above and below but rather considers the entire window (both full screen and windowed) as the game scene.
So if the resolution does not require black bands the inventory appears full at a certain distance from the bottom, differently it remains covered in part by the black bands.
By disabling the Aspect Ratio option, the problem seems to be resolved.
Do you have any idea to fix issue?
Comments
Have you checked Always fit within screen? in the Menu's properties, and have you defined an appropriate RectTransform boundary?
However, the Menu class's SetCentre function accounts for the UI within the boundary of the screen:
using UnityEngine;
using System.Collections;
public class MenuPositionTest : MonoBehaviour {
public Vector2 position;
void Update () {
AC.Menu menu = AC.PlayerMenus.GetMenuWithName ("InGame");
menu.SetCentre (position);
}
}