📅  最后修改于: 2022-03-11 14:49:13.649000             🧑  作者: Mango
using UnityEditor;
using UnityEditor.Experimental.SceneManagement;
if (PrefabStageUtility.GetCurrentPrefabStage() == null) {}
// If null it mean you are not in prefab editing mode