1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Unity] プレイ開始の待ち時間を超短縮!

1
Posted at

Unity6.6 からは再生時のリロード方式が変更になり、再生ボタンを押してからシーンがスタートするまでの時間が爆速になっています。

…なのですが、すでにあるシーンを6.6で開いても設定が引き継がれるため、相変わらず遅いままです。

高速化するためには、
ProjectSettings > Editor EnterPlayModeSettings > When entering PlayMode
を Reload Scene Only にする必要があります。

image.png

なお、これを行うと static変数等が初期化されなくなります。

static変数が使われているかどうかを調べるには

Edit > Preferences
Analysis > ProjectAuditor > UseRoslynAnalysers をチェック
image.png

Window > Analysis > ProcjectAuditor
を開き、
image.png

Start Analysisを実行(初回はInstall Rules)
image.png

Code > DomainReload を見ると問題が出そうな場所を教えてくれます。

image.png

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?