yyl
2025-07-04 5d3366f2e0f687995eb7ad2107c4379fe7acd4e8
Main/System/UIBase/UIBase.cs
@@ -184,9 +184,10 @@
        // 设置Canvas属性
        canvas.overrideSorting = true;
        canvas.worldCamera = CameraManager.uiCamera;
        canvas.sortingLayerID = SortingLayer.NameToID("UI"); // 确保使用正确的排序层
        // 获取或添加CanvasGroup组件
        canvasGroup = GetComponent<CanvasGroup>();
        if (canvasGroup == null)