/// <summary> /// Remaps the asset bundle name to the target variant. /// </summary> public string RemapVariantName(PatchManifest patchManifest, string bundleName) { if (patchManifest.HasVariant(bundleName)) { string variant = patchManifest.GetFirstVariant(bundleName); return(GetCachedVariantBundleName(bundleName, variant)); } return(bundleName); }
/// <summary> /// Remaps the asset bundle name to the target variant. /// </summary> public string RemapVariantName(PatchManifest patchManifest, string manifestPath) { if (patchManifest.HasVariant(manifestPath)) { string variant = patchManifest.GetFirstVariant(manifestPath); return(GetCachedVariantManifestPath(manifestPath, variant)); } return(manifestPath); }