public void OnGUI() { EditorGUILayout.BeginVertical(); EditorGUILayout.BeginHorizontal(); { EditorGUILayout.LabelField("Pathname:", GUILayout.Width(70)); pathname = EditorGUILayout.TextField(pathname); } EditorGUILayout.EndHorizontal(); makeIntoOneBundleName = GUILayout.Toggle(makeIntoOneBundleName, "Make into one BundleName"); if (makeIntoOneBundleName) { EditorGUILayout.BeginHorizontal(); { EditorGUILayout.LabelField("Bundle Name:", GUILayout.Width(90)); bundleName = EditorGUILayout.TextField(bundleName); } EditorGUILayout.EndHorizontal(); } if (GUILayout.Button("OK")) { SetAssetBundleNames.SetNamesFile(); _instance.Close(); _instance = null; } EditorGUILayout.EndVertical(); }
public static void OpenWindow() { _instance = GetWindow <InputAssetBundlePathnameWindow>("AssetBundlePath"); _instance.minSize = new Vector2(300.0f, 40.0f); _instance.Show(); }