ソースコード
使用例
using UnityEditor; using UnityEngine; [InitializeOnLoad] public static class Example { private static readonly EditorFirstBootChecker CHECKER = new EditorFirstBootChecker( "Hoge" ); static Example() { if ( CHECKER.IsFirstBoot() ) { Debug.Log( "初回起動" ); } else { Debug.Log( "2回目以降の起動" ); } } }