Open9

UnityとRiderメモ

s_ryuukis_ryuuki

保存時にリフォーマット
プロジェクトを開いていないと設定できない。

下記の設定にする。
Tools → Actions on Save → ✅Reformat and Cleanup Code
Profile: Reformat Code
Whoie file

s_ryuukis_ryuuki

Unityのスクリプトエディタ設定を変更

External Tools → External Script Editor → Rider 20xx.x.x
必要に応じて、「Generate .csprojfiles for:」を設定する。

s_ryuukis_ryuuki

Riderで編集しても、Unity再生中の場合にリロードしないようにする設定

Asset Pipeline → Auto Refres → Enabled Outside Playmode
Unity再生 → Riderで編集 → Unity停止(このタイミングではリロードしない)→Rider表示 → Unity表示でリロードする

Unity Issue Tracker - The “Recompile After Finished Playing” option is missing when choosing the "Script Changes While Playing" preference

  • This features has been depricated due to it not working as intented. It has been replaced with a new auto refresh feature in Preferences -> Asserts Pipeline -> Enabled Outside Playmode

Unityでエディター再生中にプログラムを変更してもコンパイルされないようにする - MRが楽しい

  • Recompile After Finished Playingが廃止されたため