- Enable Hosting in Addressables Hosting window (
Window > AssetManagement > Addressables > Hosting
).- If Hosting is unable to be enabled, change port number and repeat this operation again.
- Build asset bundle
- Remove all files except .gitignore in
ServerData/StandaloneWindows64/
andServerData/Save/
, If there are files in the directory. - Run
Build > New Build > Test Encrypt Build Script
in Addressables Groups window (Window > AssetManagement > Addressables > Groups
). - Remove the file whose name begins with "acquisition".
- Move all files except .gitignore in
ServerData/StandaloneWindows64/
toServerData/Save/
- Change the color of CubeMaterial in
Assets/Tests/Materials/
- Run
Build > New Build > Test Encrypt Build Script
in Addressables Groups window again. - Remove the file whose name begins with "acquisition".
- Remove all files except .gitignore in
- Change
Play Mode Script
in Addressables Groups toUse Existing Build (Windows)
. - If using Unity 2022.x, change
Project Settings > Player > Other Settings > Allow downloads over HTTP
toAlways allowed
- Check that Hosting is enabled and go back to Initialization if it is disabled.
- Run
Extreal.Integration.AssetWorkflow.Addressables.Test.dll
in Test Runner window. - Completed all tests.
"Xxx" is "Crypto" or "Origin".
- If Hosting is enabled, the "LoadAssetFromRemoteXxx" test succeeds.
- Otherwise, LoadAssetFromRemoteXxx fails.
- The "LoadAssetFromLocalXxx" test and the "LoadAssetFromLocalUsingUwr" test succeed whether Hosting is enabled.
Check the source code around the asserted log content for the following tests.
- CryptoAssetBundleResourceTest
- LoadAssetWithAssetBundleCrcDisabled
- LoadAssetWithAssetBundleCrcEnabledExcludingCached
- LoadAssetWithAssetBundleCrcEnabledIncludingCached
- LoadAssetWithHttpRedirectLimit
- LoadAssetWithoutHttpRedirectLimit
Since it is difficult to control the Hosting Service from the test code, retries are tested manually. Retry tests should be tested by executing the following test methods individually to toggle Enable of the Hosting Service.
- AssetProviderTest
- Download
- LoadAssetWithAssetNameSuccess
- LoadSceneSuccess