ユニティ解像度

ボイドGetResolution()
{
int型の幅= Screen.currentResolution.width。
int型の高さ= Screen.currentResolution.height。

解像度[]の解像度= Screen.resolutions。
foreachの(解像度でVAR I)
{
//print(i.width + "X" + i.height)。
IF(i.width ==幅&& i.height ==高さ)
{
DEBUG.LOG(i.height + "*" + i.width)。
}

}
Screen.SetResolution(幅、高さ、TRUE);
}

おすすめ

転載: www.cnblogs.com/clhxxlcj/p/10955013.html