private static void Go2UI() { //Transform canvas=GameObject.Find("Canvas").transform; //GameObject UI = new GameObject("UI"); //UI.AddComponent<RawImage>(); //UI.transform.SetParent(canvas, false); PopWindow pw = GetWindow(typeof(PopWindow), true, "UI自动布局") as PopWindow; pw.minSize = PopWindow.minResolution; pw.maxSize = PopWindow.minResolution; pw.Init(); pw.Show(); }