少年修仙传客户端基础资源
lwb
2020-12-31 a5ada95eb9b21648b94e2b6746b510bb7741c29a
Assets/Editor/ScriptEditor/WindowEditor.cs
@@ -7,13 +7,10 @@
{
    private void OnEnable()
    {
        var safeArea = (target as Window).GetComponentInChildren<SafeAreaUI>();
        if (safeArea == null)
            SceneView.lastActiveSceneView?.ShowNotification(new GUIContent("警告:当前窗口还没添加SafeAreaUI脚本"),5);
        // SceneView.lastActiveSceneView?.RemoveNotification();
        // var safeArea = (target as Window).GetComponentInChildren<SafeAreaUI>();
        // if (safeArea == null)
        //     SceneView.lastActiveSceneView?.ShowNotification(new GUIContent("警告:当前窗口还没添加SafeAreaUI脚本"),5);
    }
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
    }
}