public static void Init(string fileToRemove, Object dataFile, DataListEditor dataListEditorWindow) { RemoveDataWindow window = (RemoveDataWindow)EditorWindow.GetWindow(typeof(RemoveDataWindow)); window.titleContent = new GUIContent("Remove data"); window.Show(); fileToRemoveName = fileToRemove; selectedData = dataFile; dataListEditorWindowCaller = dataListEditorWindow; textStyle = new GUIStyle(); textStyle.richText = true; textStyle.padding = new RectOffset(3, 3, 10, 10); textStyle.fontSize = 14; }