コガネブログ

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

【Unity】MonoBehaviour のすべてのメンバーを Obsolete で使えないようにする抽象クラス

リポジトリ

使用例

using Kogane;
using UnityEngine;

public class Example : ObsoleteMonoBehaviour
{
    private void Start()
    {
        Debug.Log( name );
        Debug.Log( enabled );
        Debug.Log( transform );
        Debug.Log( GetComponent<Transform>() );
    }
}

ScreenShot00007