diff --git a/NEG/UI/UnityUi/MonoUiManager.cs b/NEG/UI/UnityUi/MonoUiManager.cs index 4fd003d..06388f5 100644 --- a/NEG/UI/UnityUi/MonoUiManager.cs +++ b/NEG/UI/UnityUi/MonoUiManager.cs @@ -18,6 +18,7 @@ namespace NEG.UI.UnityUi /// You have to provide prefabs within resources: /// - UI/PopupCanvas - prefab with canvas to create popups (will be created on every scene) /// - UI/DefaultPopupPrefab - prefab of default popup with 2 options (has to have component) + /// NEG_UI_DISABLE_WARNING_DEFAULT_SELECTION /// public class MonoUiManager : UiManager, IDisposable { diff --git a/NEG/UI/UnityUi/Window/MonoWindow.cs b/NEG/UI/UnityUi/Window/MonoWindow.cs index d905ac4..664971b 100644 --- a/NEG/UI/UnityUi/Window/MonoWindow.cs +++ b/NEG/UI/UnityUi/Window/MonoWindow.cs @@ -58,8 +58,10 @@ namespace NEG.UI.UnityUi.Window { if (controller == null) controller = GetComponent(); + #if !NEG_UI_DISABLE_WARNING_DEFAULT_SELECTION if(defaultSelectedItem == null) Debug.LogWarning($"Window {name} should have default selected item set"); + #endif } public void OpenWindow(IWindow window, object data = null)