コード例 #1
0
        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();
        }
コード例 #2
0
        internal static void PackageInteractively()
        {
            var files = TenjinPackager.LoadManifest();

            TenjinPackager.PublishPackage(files, TenjinPackager.EXPORTED_PACKAGE_PATH, true);
        }
コード例 #3
0
        static void Package()
        {
            var files = TenjinPackager.LoadManifest();

            TenjinPackager.PublishPackage(files);
        }