protected Dialog(string windowTitle, float defaultWidth, float defaultHeight) { this.WindowTitle = windowTitle; this.windowId = windowTitle.GetHashCode() + new System.Random().Next(65536) + System.Reflection.Assembly.GetExecutingAssembly().GetName().Name.GetHashCode(); configNodeName = windowTitle.Replace(" ", ""); windowPos = new Rect((Screen.width - defaultWidth) / 2, (Screen.height - defaultHeight) / 2, defaultWidth, defaultHeight); mouseDown = false; visible = false; var texture = DialogUtils.LoadImage <T>(IOUtils.GetFilePathFor(typeof(T), "resize.png")); resizeContent = (texture != null) ? new GUIContent(texture, "Drag to resize the window.") : new GUIContent("R", "Drag to resize the window."); Resizable = true; HideCloseButton = false; }