コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】Inspector で参照が設定されていない NotNull なパラメータが存在したら Unity を再生できなくするエディタ拡張「UniNotNullChecker」を GitHub に公開しました

リポジトリ

使用例

using JetBrains.Annotations;
using UnityEngine;

public class Test : MonoBehaviour
{
    [NotNull] public GameObject m_gameObject;
    [NotNull] public Transform  m_transform;
}

2020-05-05_180919

Image (16)

設定

2020-05-08_205620

Preferences から設定を変更できます

項目 内容
Enabled 有効かどうか(デフォルトは OFF)
Log Format エラーログのフォーマット