| | |
| | | { |
| | | 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(); |
| | | } |
| | | } |