private BuildExportPackageAssetListAssetsItems ( string guids, bool dependencies ) : UnityEditor.AssetsItem[] | ||
guids | string | |
dependencies | bool | |
Résultat | UnityEditor.AssetsItem[] |
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) {
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[] array = AssetServer.BuildExportPackageAssetListAssetsItems(guids.ToArray <string>(), includeDependencies); if (includeDependencies) { if (array.Any((AssetsItem asset) => InternalEditorUtility.IsScriptOrAssembly(asset.pathName))) { array = AssetServer.BuildExportPackageAssetListAssetsItems(guids.Union(InternalEditorUtility.GetAllScriptGUIDs()).ToArray <string>(), includeDependencies); } } return(array); }