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