UnityEditor.PackageExport.GetAssetItemsForExport C# (CSharp) Method

GetAssetItemsForExport() static private method

static private GetAssetItemsForExport ( ICollection guids, bool includeDependencies ) : IEnumerable
guids ICollection
includeDependencies bool
return IEnumerable
        internal static IEnumerable<AssetsItem> GetAssetItemsForExport(ICollection<string> guids, bool includeDependencies)
        {
            if (guids.Count == 0)
            {
                string[] collection = new string[0];
                guids = new HashSet<string>(AssetServer.CollectAllChildren(AssetServer.GetRootGUID(), collection));
            }
            AssetsItem[] source = AssetServer.BuildExportPackageAssetListAssetsItems(guids.ToArray<string>(), includeDependencies);
            if (includeDependencies)
            {
                if (<>f__am$cache6 == null)
                {
                    <>f__am$cache6 = asset => InternalEditorUtility.IsScriptOrAssembly(asset.pathName);

Usage Example

示例#1
0
 private void BuildAssetList()
 {
     this.UnscheduleBuildAssetList();
     this.m_ExportPackageItems = PackageExport.GetAssetItemsForExport(Selection.assetGUIDsDeepSelection, this.m_IncludeDependencies).ToArray <ExportPackageItem>();
     this.m_Tree          = null;
     this.m_TreeViewState = null;
     base.Repaint();
 }
All Usage Examples Of UnityEditor.PackageExport::GetAssetItemsForExport