以下の内容はhttps://baba-s.hatenablog.com/entry/2020/03/10/090000より取得しました。


【Unity】Unity プロジェクトの初回起動時かどうかを確認するクラス

ソースコード

使用例

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回目以降の起動" );
        }
    }
}

関連記事




以上の内容はhttps://baba-s.hatenablog.com/entry/2020/03/10/090000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14