void DoToolbar(Rect rect) { GUILayout.BeginArea(rect); using (new EditorGUILayout.HorizontalScope()) { var style = "miniButton"; if (GUILayout.Button("Save Manifest", style)) { TenjinPackager.SaveManifestFile(SelectedAssets()); } if (GUILayout.Button("Publish Unitypackage", style)) { TenjinPackager.PublishPackage(SelectedAssets()); } GUILayout.FlexibleSpace(); var label = $"{m_SimpleTreeView.SelectedItemCount()} files in package"; GUILayout.Label(label); } GUILayout.EndArea(); }
internal static void PackageInteractively() { var files = TenjinPackager.LoadManifest(); TenjinPackager.PublishPackage(files, TenjinPackager.EXPORTED_PACKAGE_PATH, true); }
static void Package() { var files = TenjinPackager.LoadManifest(); TenjinPackager.PublishPackage(files); }