Unityで良く使いそうなC#コードスニペットをScript Inspector 3に登録する回です。
Si3のカスタマイズは前回記事にて。
テンプレテキスト
テキストタイトルは呼び出しやすいスニペットに。
配列用forループ
$ValidAsStatement$
for (int $i$ = $end$$.Length$ - 1; $i$ >= 0; $i$--) {
}
実装すると以下の様になります。



UNITY_EDITOR
$ValidAsNamespaceMember$
#if UNITY_EDITOR
using UnityEditor;
#endif
コメント