Android 기기는 애플리케이션의 시작 프로세스를 최적화하여 애플리케이션이 인터랙티브로 전환되는 데 걸리는 시간을 단축할 수 있습니다. Android가 이를 수행하려면 애플리케이션이 초기화를 완료하고 최종 사용자를 위해 인터랙티브로 전환되는 시점을 표시해야 합니다. 그러면 Android는 애플리케이션이 초기화되기 전에 완료해야 하는 작업의 우선순위를 지정합니다.
Android 애플리케이션은 Activity.reportFullyDrawn API를 사용하여 시작을 완료하였음을 표시합니다. 기본적으로 Unity는 이 메서드를 Awake 전에 첫 번째 씬 로드로 호출합니다. 하지만 사용자가 애플리케이션과 상호작용하기 전에 애플리케이션이 추가 작업을 수행해야 하는 경우(예: 화면에 콘텐츠가 표시되기 전에 일부 리소스를 로드해야 하는 경우), 애플리케이션이 인터랙티브로 전환되는 프레임에서 이 API를 직접 호출해야 합니다. 이렇게 하려면 DiagnosticsReporting.CallReportFullyDrawn을 호출합니다. 이 메서드를 코드에서 호출하면 Unity는 첫 번째 씬 로드 시 더 이상 자동으로 해당 메서드를 호출하지 않습니다.
참고: Android는 CallReportFullyDrawn
을 처음 호출하는 경우만 카운트하므로, 여러 번 호출하지 않아도 됩니다.
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.