From e30470d27a0a6d0b43c7a86b6490aa99ce996745 Mon Sep 17 00:00:00 2001 From: Hubert Mattusch Date: Fri, 19 May 2023 22:52:09 +0200 Subject: [PATCH] update window --- NEG/UI/UnityUi/Window/MonoWindow.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEG/UI/UnityUi/Window/MonoWindow.cs b/NEG/UI/UnityUi/Window/MonoWindow.cs index f37bc89..147239a 100644 --- a/NEG/UI/UnityUi/Window/MonoWindow.cs +++ b/NEG/UI/UnityUi/Window/MonoWindow.cs @@ -6,6 +6,7 @@ using NEG.UI.WindowSlot; using System; using System.Collections.Generic; using UnityEngine; +using UnityEngine.EventSystems; namespace NEG.UI.UnityUi.Window { @@ -27,6 +28,7 @@ namespace NEG.UI.UnityUi.Window { gameObject.SetActive(true); Parent = parentSlot; + EventSystem.current.SetSelectedGameObject(defaultSelectedItem); if (controller != null) controller.OnOpened(); }