コード例 #1
0
ファイル: UIManagerBase.cs プロジェクト: striter/VDefend
    protected void SetControlViewMode(UIControlBase control, bool overlay)
    {
        if (!m_ControlSibiling.ContainsKey(control))
        {
            Debug.LogError("?");
            return;
        }

        TCommonUI.ReparentRestretchUI(control.rectTransform, overlay ? tf_OverlayControl : tf_CameraControl);
        control.transform.SetSiblingIndex(m_ControlSibiling[control]);
    }
コード例 #2
0
ファイル: UIManagerBase.cs プロジェクト: striter/VDefend
 protected void SetPageViewMode(UIPageBase page, bool overlay) => TCommonUI.ReparentRestretchUI(page.rectTransform, overlay ? tf_OverlayPage : tf_CameraPage);