SHA256
Fix Warning Dialogs Hidden Behind Render Config Window
This commit is contained in:
1 parent
1fdee67f9d
commit
8e0639aafa
1 file changed
+7
@@ -94,8 +94,15 @@ internal class RendererUIManager : MonoBehaviour
|
|||||||
);
|
);
|
||||||
|
|
||||||
_windowManager = O5WindowManager.Create(_context, transform, "RendererMod_Canvas");
|
_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<Canvas>();
|
||||||
|
if (windowCanvas != null) windowCanvas.sortingOrder = WindowCanvasSortingOrder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private const int WindowCanvasSortingOrder = 32000;
|
||||||
|
|
||||||
private void Update() {
|
private void Update() {
|
||||||
O5Object.TickAll();
|
O5Object.TickAll();
|
||||||
Context.Tooltip.Tick();
|
Context.Tooltip.Tick();
|
||||||
|
|||||||
Reference in new issue
Block a user