[[["容易理解","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 (世界標準時間)。"],[],[],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 });"]]