public static void Combine_Model()
    {
        Rect          rect   = new Rect(Screen.width / 2, Screen.height / 2, width, heigh);
        CombineWindow window = (CombineWindow)GetWindowWithRect(typeof(CombineWindow), rect);

        window.titleContent = new GUIContent("一个平凡的窗口");
        window.Show();
    }
Esempio n. 2
0
        /// <summary>
        /// 窗口拼接
        /// </summary>
        /// <param name="monitorCmbParam"></param>
        /// <returns></returns>
        public int CombineMonitor(CombineWindow monitorCmbParam)
        {
            if (DigitMatrixCenter == null)
            {
                throw new Exception("请配置数字矩阵中心!");
            }
            string url = string.Format("http://{0}:{1}/dmc/combinewnd", DigitMatrixCenter.EndPoints[0].IPAddress, DigitMatrixCenter.EndPoints[0].Port);

            HttpClientHelper.Put <CombineWindow>(monitorCmbParam, url);
            return(0);
        }