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


【Unity】Progress が実行中なら Unity を再生できなくするエディタ拡張

概要

using UnityEditor;
using UnityEngine;

[InitializeOnLoad]
public static class Example
{
    static Example()
    {
        EditorApplication.playModeStateChanged += OnChanged;
    }

    private static void OnChanged( PlayModeStateChange change )
    {
        if ( !Progress.running ) return;
        if ( change != PlayModeStateChange.ExitingEditMode ) return;

        Debug.Log( "再生キャンセル" );
        EditorApplication.isPlaying = false;
    }
}



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

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