0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Unity】ゲームビューが勝手に拡大される問題を完全に解決する

Last updated at Posted at 2019-09-20

起こっている問題について

この記事で解決するのは、以下のリンク先にあるような問題です。

ゲームを実行すると ゲームビューが勝手に拡大される。

エディタ拡張での解決方法

ゲームビューのScaleが勝手に動いてしまうのが問題なので、これを1に直すエディタ拡張を書いてくださってるのを見つけました。

今回はこれを利用します。
コードはリンク先参照。

UnityのGameViewのScaleを1に強制的に戻すエディタ拡張

Unity上での解像度の設定

しかし、これだけでは直らない場合があります。
解像度を追加する際、 Aspect Ratio を選んでください。
これにしないとWindowの大きさによっては期待したものと齟齬が生じてしまいます。

image.png

もし解決できた方はよろしければいいねお願いします。

0
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?