이 페이지에서는 Unity에 Addressables 씬을 포함하도록 Android Performance Tuner를 구성하는 방법을 설명합니다.
Addressables을 사용하면 개발자가 런타임에 콘텐츠를 동적으로 로드할 수 있습니다.
여기에는 .apk가 빌드될 때 Unity의 빌드 설정에 없는 씬이 포함될 수 있습니다.
Android Performance Tuner 1.5.1 이전에는 이러한 씬을 Android Performance Tuner에서 인식하지 못했으며 Play Console에서 검사할 수도 없었습니다.
요구사항
Addressables 씬 지원에는 다음과 같은 요구사항이 있습니다.
Android Performance Tuner 1.5.1 이상
Unity 2019.3 이상
Addressables 패키지 1.19.4 이상
Addressables 씬 추가
Android Performance Tuner가 Addressables 씬을 인식하도록 하려면 다음 단계를 따르세요.
앱을 테스트할 준비가 되면 Window(창) > Android Performance Tuner > Setup(설정) 으로 이동해 Addressables Settings(Addressables 설정) 탭을 엽니다.
그림 1. Addressables 설정 창.
Update Addressables Scenes(Addressables 씬 업데이트) 버튼을 클릭합니다.
기본적으로 AddressableAssetSettingsDefaultObject에 포함된 모든 씬은 Android Performance Tuner에 포함됩니다.
이제 창에 proto 파일에 저장된 값과 연결된 것으로 확인된 모든 씬의 목록이 표시됩니다.
그림 2. Android Performance Tuner에서 나열한 Addressables 씬.
씬을 가져올 Addressables 설정 객체를 변경하려면 다음 단계를 따르세요.
Assets/AndroidPerformanceTuner_gen/Runtime/Resources 폴더로 이동하여 Inspector(인스펙터)에서 SetupConfig 스크립트 가능 객체를 엽니다.
Addressables Settings Object Path(Addressables 설정 객체 경로) 필드에 파일 이름을 비롯한 커스텀 설정 객체 경로를 삽입합니다.
씬 레이아웃이 최종 단계 직전인 경우 이전 버전과의 호환성 문제를 방지하기 위해 Addressables 씬을 업데이트하는 것이 좋습니다.
Android Performance Tuner는 Play Console에 업로드된 .apk 파일에 있던 씬에 관한 데이터만 수집합니다.
Addressables 씬 재설정
Addressables Settings(Addressables 설정) 탭에서 Reset Addressables Scenes(Addressables 씬 재설정)를 클릭하여 Addressables 씬을 재설정할 수 있습니다.
하지만 이렇게 하면 현재 게시된 앱 버전과의 호환성이 손상됩니다.
새 버전을 게시하지 않고 앱에서 SetupConfig 객체를 동적으로 업데이트하면 씬-값 관계가 유지되지 않으므로 Play Console에서 오류가 발생합니다.
주석에서 Addressables 씬 설정
기본 주석을 사용할 경우 Android Performance Tuner가 자동으로 올바른 씬을 설정합니다.
커스텀 주석을 사용하는 경우 다음과 같이 ConvertAddressableScenePathToAPTSceneIndex()를 호출합니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-08-26(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-08-26(UTC)"],[],[],null,["This page describes how to configure Android Performance Tuner to include\nAddressables scenes in Unity.\n\n[Addressables](https://docs.unity3d.com/Packages/com.unity.addressables@0.8/manual/index.html)\nallow developers to dynamically load content at runtime.\nThis can include scenes that are not present in Unity's build settings when\nthe .apk is built.\nBefore Android Performance Tuner 1.5.1, those scenes were not recognised by\nAndroid Performance Tuner and couldn't be inspected in the Play Console.\n\nRequirements\n\nSupport for Addressables scenes has the following requirements:\n\n- Android Performance Tuner 1.5.1 or later\n- Unity 2019.3 or later\n- Addressables package 1.19.4 or later\n\nAdd Addressables scenes\n\nTo make Android Performance Tuner recognise your Addressables scenes,\ndo the following:\n\n1. When you're ready to test your app, go to\n **Window \\\u003e Android Performance Tuner \\\u003e Setup** and open the\n **Addressables Settings** tab.\n\n\n **Figure 1.** Addressables Settings window.\n2. Click the **Update Addressables Scenes** button.\n\nBy default, all the scenes contained in the\n`AddressableAssetSettingsDefaultObject` are included in\nAndroid Performance Tuner.\nThe window now displays a list of all the scenes that were found coupled with\ntheir value as saved in the proto file.\n\n\n**Figure 2.** Addressables scenes listed by Android Performance Tuner.\n\nTo change the Addressable Settings Object from which scenes are pulled:\n\n1. Go to the **Assets/AndroidPerformanceTuner_gen/Runtime/Resources** folder\n and open the **SetupConfig** scriptable object in the Inspector.\n\n2. Insert the path to your custom Settings Object in the\n **Addressables Settings Object Path** field, including the name of the file.\n\nWe recommend that you update the Addressables scenes when your scenes layout is\nsemi-final to avoid backward compatibility issues.\n\nAndroid Performance Tuner only collects data for scenes that were present\nin the .apk file that was uploaded to the Play Console.\n\nResetting Addressables scenes\n\nYou can reset your Addressables scenes by clicking\n**Reset Addressables Scenes** in the **Addressables Settings** tab.\nHowever, this breaks compatibility with the currently-published version of\nthe app.\n\nDynamically updating the `SetupConfig` object in the app without publishing\na new release will result in errors in the Play Console as the scene-value\nrelations won't be preserved.\n\nSetting Addressables scenes in annotations\n\nIf you're using default annotations, Android Performance Tuner automatically sets\nthe correct scene.\nIf you're using custom annotations,\ncall `ConvertAddressableScenePathToAPTSceneIndex()`: \n\n tuner.SetCurrentAnnotation(new Annotation\n {\n Scene = (Scene) tuner.ConvertAddressableScenePathToAPTSceneIndex(scenePath),\n Difficulty = Difficulty.Medium\n });"]]