ExportPackage() private method

private ExportPackage ( string guids, string fileName ) : void
guids string
fileName string
return void
示例#1
0
        private void Export()
        {
            string fileName = EditorUtility.SaveFilePanel("Export package ...", string.Empty, string.Empty, "unitypackage");

            if (fileName != string.Empty)
            {
                List <string> list = new List <string>();
                foreach (ExportPackageItem item in this.m_ExportPackageItems)
                {
                    if (item.enabledStatus > 0)
                    {
                        list.Add(item.guid);
                    }
                }
                PackageUtility.ExportPackage(list.ToArray(), fileName);
                base.Close();
                GUIUtility.ExitGUI();
            }
        }
示例#2
0
        private void Export()
        {
            string text = EditorUtility.SaveFilePanel("Export package ...", string.Empty, string.Empty, "unitypackage");

            if (text != string.Empty)
            {
                List <string>       list = new List <string>();
                ExportPackageItem[] exportPackageItems = this.m_ExportPackageItems;
                for (int i = 0; i < exportPackageItems.Length; i++)
                {
                    ExportPackageItem exportPackageItem = exportPackageItems[i];
                    if (exportPackageItem.enabledStatus > 0)
                    {
                        list.Add(exportPackageItem.guid);
                    }
                }
                PackageUtility.ExportPackage(list.ToArray(), text);
                base.Close();
                GUIUtility.ExitGUI();
            }
        }
        private void Export()
        {
            string fileName = EditorUtility.SaveFilePanel("Export package ...", "", "", "unitypackage");

            if (fileName != "")
            {
                // build guid list
                List <string> guids = new List <string>();

                foreach (ExportPackageItem ai in m_ExportPackageItems)
                {
                    if (ai.enabledStatus > 0)
                    {
                        guids.Add(ai.guid);
                    }
                }

                PackageUtility.ExportPackage(guids.ToArray(), fileName);

                Close();
                GUIUtility.ExitGUI();
            }
        }
示例#4
0
 private static void ExportPackage(string[] guids, string fileName)
 {
     PackageUtility.ExportPackage(guids, fileName);
 }