UnityEditor.PackageExport.Export C# (CSharp) Method

Export() private method

private Export ( ) : void
return void
        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 (AssetsItem item in this.m_Assets)
                {
                    if (item.enabled != 0)
                    {
                        list.Add(item.guid);
                    }
                }
                AssetServer.ExportPackage(list.ToArray(), fileName);
                base.Close();
                GUIUtility.ExitGUI();
            }
        }