private void doBundleSaveOne(string bundleName, int type) { ResourceSaveExData data = _newVersion.getBundleEx(bundleName); if (data != null) { if (ShineToolSetting.bundlePackNeedPutDependAlsoIntoStreamingAssets && type == ResourceSaveType.InStreamingAsset && data.saveType != type) { data.saveType = type; } } else { data = doFileSaveData(getTargetSourcePath(), bundleName, type); if (ShineToolSetting.bundlePackNeedPutDependAlsoIntoStreamingAssets) { int resourceID = LoadControl.getResourceIDByName(data.name); BundleInfoData bundleInfoData = LoadControl.getBundleInfo(resourceID); foreach (int d in bundleInfoData.depends) { string pName = LoadControl.getResourceNameByID(d); //父类型 doBundleSaveOne(pName, type); } } } }