UnityEditor.PackageUtility.ExportPackage C# (CSharp) Method

ExportPackage() private method

private ExportPackage ( string guids, string fileName ) : void
guids string
fileName string
return void
        public static extern void ExportPackage(string[] guids, string fileName);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

示例#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();
            }
        }
All Usage Examples Of UnityEditor.PackageUtility::ExportPackage