コード例 #1
0
 public static void Focus(WindowComponent windowComponent)
 {
     CurrentlyFocusedWindow = windowComponent;
     UpdateWindowsDepth();
 }
コード例 #2
0
        public static void KeepWindowInsideScreen(WindowComponent windowComponent)
        {
            var bounds = GameObjectUtil.GetDragObjectBounds(windowComponent.ControlBar.DragObject);

            windowComponent.ControlBar.DragObject.panelRegion.ConstrainTargetToBounds(windowComponent.transform, ref bounds, true);
        }
コード例 #3
0
 public static void CacheComponents(WindowComponent windowComponent)
 {
     CacheWidgets(windowComponent);
     CachePanels(windowComponent);
     AddClickListersToColliders(windowComponent);
 }
コード例 #4
0
        public static void CloseWindowComponent(WindowComponent windowComponent)
        {
            var window = GetWindowFromWindowComponent(windowComponent);

            CloseWindow(window);
        }