static public void InitPopup(Transform t) { ExamplePopup popup = CreateInstance <ExamplePopup>(); parentObject = t; popup.name = "Rename Children"; popup.titleContent.text = "Rename Children"; popup.position = new Rect(Screen.width / 2, Screen.height / 2, 200, 400); popup.ShowUtility(); }