Search Issue Tracker

Fixed in 5.0.X

Votes

0

Found in

5.0.0b17

Issue ID

654975

Regression

Yes

[PackageExport] AssetDatabase.ExportPackage fails with ExportPackageOptions.IncludeLibraryAssets

Packages

-

Steps to reproduce:
1. Download and open attached project
2. Click on Assets\Export Project menu option. Error will be thrown:
Error while exporting package: Couldn't copy metadata
UnityEditor.AssetDatabase:ExportPackage(String, String, ExportPackageOptions)
ExportProject:ExportThisProject() (at Assets/ExportProject.cs:10)

Code to export package:
AssetDatabase.ExportPackage ("Assets", "MyPackage.unitypackage", ExportPackageOptions.IncludeLibraryAssets | ExportPackageOptions.Recurse);

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.