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


【Unity】プレハブモードかどうかをエディタ拡張で確認する方法

概要

using UnityEditor;
using UnityEditor.Experimental.SceneManagement;
using UnityEngine;

public static class Example
{
    [MenuItem( "Tools/Hoge" )]
    public static void Hoge()
    {
        var isPrefabMode = PrefabStageUtility.GetCurrentPrefabStage() != null;
        Debug.Log( isPrefabMode );
    }
}



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

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