CRIWARE Unity Plugin Manual  Last Updated: 2025-05-08
Migrating from CRI Addressables below 0.7.00
From CRI Addressables 0.7.00, the recommended usage has changed significantly.
To maintain compatibility, you can select the operation mode on the Editor from one of the following.
  • Use Anchor Assets: Generate anchor asset and CriData groups as before
  • Use Cri Build Script : New operating mode
Attention
If you move to Use Cri Build Script mode, you will need to re-download the CRI asset that have been delivered to each client.

Use Cri Build Script mode behavior

There are the following differences compared to the previous operation mode, Use Anchor Assets.
  • You must use CriAddressablesBuildScript (or its inherited class) as the build script
  • Does not generate anchor asset or CriData groups
  • There is no need to specify the destination group when selecting DeployType
  • No need to call CriAddressables.ModifyLocators within your app

Procedure for migrating to Use Cri Build Script mode

If you import CRI Addressables v0.7.x into a project that already uses CRI Addressables,
You can select the operating mode from the CRIWARE/Asset Support Add-on page in the ProjectSettings window.
addon4u_assetsupport_addressables_migration.png
You can change the operating mode using the following method.
  1. Import the package containing CRI Addressables 0.7.00 or later into your project
  2. Switch the operation mode to Use Cri Build Script from the ProjectSettings window and save the project.
    • At this point each CRI asset will be re-imported and the CRI Addressables related groups will also be removed from AddressablesGroups
  3. Create a CriAddressablesBuildScript asset and register it as a build script using one of the following methods:
    • After switching modes, press the [Setup Build Script] button in the ProjectSettings window and specify the path to save the asset .
    • Create an asset in [Assets/Create/ CRIWARE /Cri Addressables Build Script] in the menu and set it to DefaultBuildScript in AddressableAssetSettings.
  4. Rebuild the bundle

Where to deploy CRI data

In Use Anchor Assets mode, it was necessary to specify the deployment group at the same time as specifying DeployType, but
In Use Cri Build Script mode, it is determined automatically according to the settings of the group that depends on the CRI asset.
When a prefab that depends on a CRI asset or the CRI asset itself is included in an AddressableGroup, the BuildPath/LoadPath settings of that group are followed.