Must update
[2.9.9] - 2023-12-18
- Added PackageOperation feature, can download packages more easier (please checkout BundleDLC Demo).
// Factory Mode
public static PackageOperation CreateOperation(string groupName, PackageInfoWithBuild packageInfo, bool skipDownload = false)
public static PackageOperation CreateOperation(string groupName, PackageInfoWithBuild[] packageInfos, bool skipDownload = false)
// Use Example
var packageOperations = new PackageOperation[]
{
new PackageOperation
(
"DLC Package 1",
new DlcPackageInfoWithBuild()
{
buildMode = BuildMode.ScriptableBuildPipeline,
packageName = "Dlc1Package",
dlcVersion = "latest"
},
false
),
new PackageOperation
(
"DLC Pacakge 2",
new DlcPackageInfoWithBuild()
{
buildMode = BuildMode.ScriptableBuildPipeline,
packageName = "Dlc2Package",
dlcVersion = "latest"
},
false
)
};
- Added BundleDLCDemo for operate PackageOperation.
- Modified params to PackageInfoWithBuild.
public abstract class PackageInfoWithBuild
{
[Tooltip("Only for EditorSimulateMode")]
public BuildMode buildMode;
public string packageName;
/// <summary>
/// Custom host server
/// </summary>
[HideInInspector]
public string hostServer = null;
/// <summary>
/// Custom fallback host server
/// </summary>
[HideInInspector]
public string fallbackHostServer = null;
public IBuildinQueryServices builtinQueryService = null;
public IDeliveryQueryServices deliveryQueryService = null;
public IDeliveryLoadServices deliveryLoadService = null;
}
- Removed method InitCustomPackage from AssetPatcher.