KITASENJU DESIGN BLOG

memo, html, javascript, unity

Screen.width was sometimes wrong.

On UnityEditor, when I put my own button on inspector and press it, the Screen.width/Screen.height is wrong. It does not change on update() function. I think this is a very rare phenomenon.

Screen.widthがおかしい時があった。 UnityEditor上にて、inspectorに自作ボタンを配し、それを押した瞬間のScreen.width/Screen.heightがおかしくなる。 update()関数内では変わらない。 非常に稀な現象だと思うが。

Confirmed by Unity2021.3 Unity2021.3で確認

"FOOTER"