이 페이지에서는 Play Asset Delivery를 사용하는 Unity Android 애플리케이션 컨텍스트에서 에셋 팩이 작동하는 방법을 설명합니다.
Unity를 다음과 같이 설정하여 기본 모듈과 에셋 팩으로 분할된 애플리케이션을 포함하는 Android 앱 번들 (AAB)을 생성할 수 있습니다.
Alongside the asset packs that Unity generates automatically, you can also create your own custom asset packs. This helps you to control which assets an asset pack contains. Unity adds your custom asset packs to the final AAB. For more information, refer to Custom asset packs.
에셋 팩에는 다운로드 크기 제한이 있습니다. 이를 고려하기 위해 Unity는 추가 에셋 크기에 따라 에셋 팩이 생성되는 방법을 다음과 같이 변경합니다.
install-time
delivery mode and is called UnityDataAssetPack. If you don’t create any custom asset packs, this means that the device downloads the asset pack as part of the application installation and, when the user first launches the application, all assets are available.install-time
delivery mode to the larger asset pack and assigns the fast-follow
delivery mode to the smaller one.중요: 이 에셋 팩 중 하나가 Google Play Store가 허용한 크기 제한 용량을 초과하는 경우 Unity는 경고를 표시하지만 빌드를 중단하지는 않습니다. 또한 Unity는 에셋 팩 크기를 개별적으로 확인하며 커스텀 에셋 팩에 대한 크기 확인은 수행하지 않습니다. 즉 Unity가 생성한 에셋 팩이 Google Play Store 제한에는 맞지만 커스텀 에셋 팩과의 조합이 Google Play Store에 너무 큰 경우 Unity는 경고나 오류를 표시하지 않습니다.
If you enable texture compression targeting, Unity generates an additional install-time
asset pack called UnityTextureCompressionsAssetPack which includes common assets and the assets required by the first scene. Texture compression targeting doesn’t affect Streaming Assets so if you use Steaming Assets and enable texture compression targeting, Unity always packs Streaming Assets into a separate asset pack called UnityStreamingAssetPack. Unity does this regardless of whether your additional assets are over 1GB or not. Both UnityDataAssetPack and UnityStreamingAssetPack might end up as install-time
or fast-follow
asset packs depending on their size and the size of UnityTextureCompressionsAssetPack.
For asset packs that Unity automatically generates, Unity doesn’t support changing the delivery mode. If you want to change the delivery mode of an asset pack, create custom asset packs with your assets.
If you want to control which non-code resources are in a particular asset pack, you can create a custom asset pack. Unlike Unity-generated asset packs, you can set the delivery mode for custom asset packs. If you create a custom asset pack, be aware that the Google Play Store has size and quantity limits for asset packs. For information on the limits, refer to Download size limits.
To use custom asset packs with Addressables, you must extend the Addressables functionality. The Play Asset Delivery Addressables sample provides an example of how to do this. For more information, refer to the sample documentation.