커스텀 에셋 팩을 만들려면 .androidpack
으로 끝나는 이름을 가진 디렉토리를 만들어야 합니다. 이 디렉토리를 프로젝트의 에셋 디렉토리나 다른 하위 디렉토리에 배치할 수 있습니다.
중요: Unity는 .androidpack
디렉토리에서 에셋을 임포트하지 않으므로 커스텀 에셋 팩에 있는 에셋을 Unity 씬에 바로 사용할 수 없습니다. 커스텀 에셋 팩의 에셋을 사용하려면 수동으로 액세스하여 런타임 시 동적으로 로드해야 합니다. 이렇게 하는 방법에 대한 자세한 내용은 런타임 시 에셋 팩 관리를 참조하십시오.
다음 단계에서는 MyAssets1로 이름이 지정된 커스텀 에셋 팩 생성 방법을 설명합니다.
MyAssets1.androidpack
으로 지정합니다. 어떤 에셋이든 해당 에셋 팩에 추가하려면 이 폴더 안에 배치합니다.
on-demand
이므로 전송 모드를 변경하지 않는 경우 런타임 시 수동으로 에셋 팩을 다운로드해야 합니다. 이렇게 하는 방법에 대한 내용은 런타임 시 에셋 팩 관리를 참조하십시오.build.gradle
이라는 파일을 만듭니다. 다음을 이 파일에 붙여넣습니다.apply plugin: 'com.android.asset-pack'
assetPack {
packName = "MyAssets1"
dynamicDelivery {
deliveryType = "fast-follow"
}
}
이렇게 하면 전송 모드를 fast-follow
로 설정하므로 Google Play는 애플리케이션을 설치한 후 자동으로 에셋 팩을 다운로드합니다. 이 파일의 포맷에 대한 내용은 Asset Delivery 통합을 참조하십시오.
참고: build.gradle
파일에 지정한 packName
은 .androidpack
확장자 없이 설정한 에셋 팩 디렉토리 이름과 일치해야 합니다.
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.