From 8e0639aafac95a204f1a21573befe65f4a48b3cf59ee7e70db116ce4ff4d941e Mon Sep 17 00:00:00 2001 From: copecone Date: Wed, 14 Oct 2026 20:46:02 +0900 Subject: [PATCH] Fix Warning Dialogs Hidden Behind Render Config Window --- UI/RendererUIManager.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/UI/RendererUIManager.cs b/UI/RendererUIManager.cs index 83fb46e..1bd224f 100644 --- a/UI/RendererUIManager.cs +++ b/UI/RendererUIManager.cs @@ -94,8 +94,15 @@ internal class RendererUIManager : MonoBehaviour ); _windowManager = O5WindowManager.Create(_context, transform, "RendererMod_Canvas"); + + // The O5Kit canvas is created with sortingOrder 32767. It is lowered so that the dialogs of + // CommonWarningDialogUI (32766) are drawn above the windows of this manager. + var windowCanvas = transform.Find("RendererMod_Canvas")?.GetComponent(); + if (windowCanvas != null) windowCanvas.sortingOrder = WindowCanvasSortingOrder; } + private const int WindowCanvasSortingOrder = 32000; + private void Update() { O5Object.TickAll(); Context.Tooltip.Tick();