Eklentiyi içe aktarmadan önce projenizde .NET sürüm 4.6'nın kullanıldığından emin olun.
Bu, Unity 2018.4 ve önceki sürümleri için geçerlidir (Unity'nin sonraki sürümlerinde yalnızca .NET 4.6 sürümü bulunur).
Dosya > Derleme Ayarları'nı seçin. Mevcut platform olarak Android'in seçildiğinden emin olun.
Oynatıcı Ayarları düğmesini tıklayın.
Diğer Ayarlar bölümünde Scripting Runtime Version'ı bulun ve .NET 4.6'yı seçin.
Eklenti, projenize aktarabileceğiniz bir Unity paketi olarak sağlanır.
Öğeler > Paketi İçe Aktar > Özel Paket'i seçin ve indirdiğiniz .unitypackage dosyasını seçin.
Unity 2017 ile Android Performance Tuner'ın 1.5.1 veya sonraki bir sürümü
Unity 2017 ile 1.5.1 veya sonraki bir Android Performance Tuner sürümünü kullanırken eklentiyi içe aktarmak için aşağıdaki ek adımları uygulamanız gerekir:
Eksik iki derleme referansını kaldırmak için 3. adımı tekrarlayın.
Unity'yi yeniden başlatın.
Window > AndroidPerformanceTuner > Setup'a (Pencere > AndroidPerformanceTuner > Kurulum) gidin ve hata gösterilmediğini doğrulayın.
Silme işleminden sonra eklentiyi yeniden içe aktarma
Eklentiyi projeden kaldırdıktan sonra yeniden içe aktarıyorsanız önce Player Settings > Scripting Define Symbols bölümünden ANDROID_PERFORMANCE_TUNER_UTILITIES simgesini kaldırın.
Eklentiyi yapılandırma
Eklentiyi yapılandırmak için aşağıdakileri yapın:
Unity 2019.3.14 veya sonraki sürümler için:
Android Frame Pacing kitaplığını etkinleştirin. Android Performance Tuner, bu kitaplığı kullanarak oyununuzun performansını ölçer. Bu ölçümler, Unity'nin tek başına bildirdiklerinden daha ayrıntılıdır.
File > Build Settings'i (Dosya > Derleme Ayarları) seçin ve Player Settings (Oynatıcı Ayarları) düğmesini tıklayın.
Çözünürlük ve Sunum bölümünde Optimize edilmiş kare hızı onay kutusunu seçin.
Çerçeve oluşturmayı dikey boşluklarla senkronize edin.
Oynatıcı Ayarları'nda Kalite sekmesini seçin ve VSync Sayısı menüsünü bulun. Senkronize etme dışında herhangi bir seçimi kullanın.
Senkronize Etme dışındaki seçimler, Android Frame Pacing kitaplığıyla birlikte daha hassas ölçümler yapılmasını sağlar.
(Unity'nin 2019'dan önceki sürümleri için) Derleme sistemini Gradle olarak ayarlayın. Dosya > Derleme Ayarları'nı seçin. Build System'i (Derleme Sistemi) bulun ve Gradle'ı seçin.
İnternet erişimi iznini ekleyin. Diğer Ayarlar bölümünde İnternet Erişimi'ni bulun ve Gerekli'yi seçin.
API anahtarınızı girin. Eklenti yüklendikten sonra Window > Android Performance Tuner > Setup (Pencere > Android Performance Tuner > Kurulum) menüsünden eklentiye erişebilirsiniz. Bu iletişim kutusunda Ayarlar sekmesini seçin ve API anahtarı alanına Google Cloud projenizden alınan API anahtarını girin.
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-08-26 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-08-26 UTC."],[],[],null,["This page describes how to download, import, and configure the Unity plugin for\nAndroid Performance Tuner.\n\nRequirements\n\nTo use the plugin in your game, use a supported version of Unity:\n\n- Unity version 2017.4 or later and [.NET version 4.6](https://dotnet.microsoft.com/download/dotnet-framework/net46)\n- To use APK Expansion files, Unity 2018.2 is required\n- For improved frame pacing and GPU measurements, Unity version 2019.3.14 or later is required\n- For Addressables scenes support, Unity 2019.3 or later and [Addressables package 1.19.4](https://docs.unity3d.com/Packages/com.unity.addressables@0.8/manual/index.html) or later are required.\n\nDownload the plugin\n\nDownload the plugin from the\n[GitHub repository](https://github.com/android/tuningfork/releases). Select the\n`.unitypackage` file download.\n\nImport the plugin\n\nBefore importing the plugin, make sure your project is using .NET version 4.6.\nThis applies to Unity version 2018.4 and earlier (later versions of Unity\ncontain .NET version 4.6 only).\n\n1. Select **File \\\u003e Build Settings**. Make sure Android is selected as the current platform.\n2. Click the **Player Settings** button.\n3. Under **Other Settings** , find **Scripting Runtime Version** and select **.NET 4.6**.\n\nThe plugin is provided as a Unity Package that you can import in your project.\nSelect **Assets \\\u003e Import Package \\\u003e Custom Package** and select the\n`.unitypackage` file you downloaded.\n\nAndroid Performance Tuner version **1.5.1 or higher** with **Unity 2017**\n\nUsing Android Performance Tuner version **1.5.1 or higher** with **Unity 2017**\nrequires the following additional steps when importing the plugin:\n\n1. Go to the **Assets/AndroidPerformanceTuner/Editor** folder.\n2. Click the **Google.Android.PerformanceTuner.Editor** file to open it in the **Inspector**.\n3. Click the missing assembly reference and then click **-** to remove it.\n4. Click the **Apply** button.\n\n\n **Figure 1.** Missing assembly reference.\n5. Go to the **Assets/AndroidPerformanceTuner/Runtime** folder.\n\n6. Click the **Google.Android.PerformanceTuner** file to open it in the\n Inspector.\n\n7. Repeat **step 3** to remove the two missing assembly references.\n\n8. Restart Unity.\n\n9. Go to **Window \\\u003e AndroidPerformanceTuner \\\u003e Setup** and verify that no errors\n are displayed.\n\nRe-importing the plugin after deletion\n\nIf you're re-importing the plugin after removing it from the project, remove\n`ANDROID_PERFORMANCE_TUNER_UTILITIES` from\n**Player Settings \\\u003e Scripting Define Symbols** first.\n\nConfigure the plugin\n\nTo configure the plugin, do the following:\n\n1. For Unity version 2019.3.14 or later:\n\n - Enable the Android Frame Pacing library. Android Performance Tuner will use\n this library to measure the performance of your game, including more\n in-depth measures than what Unity alone reports.\n\n Select **File \\\u003e Build Settings** and click the **Player Settings** button.\n Under **Resolution and Presentation** , select the **Optimized Frame Pacing**\n checkbox.\n - Synchronize the frame rendering with vertical blanks.\n\n From the Player Settings, select the **Quality** tab and find the\n **VSync Count** menu. Use any selection (except **Don't Sync** ).\n Selections other than **Don't Sync** enable more precise measurements in\n conjunction with the Android Frame Pacing library.\n2. (For versions of Unity prior to 2019) Set the build system to Gradle. Select\n **File \\\u003e Build Settings** . Find **Build System** and select **Gradle**.\n\n3. Add the internet access permission. Under **Other Settings** , find\n **Internet Access** and select **Require**.\n\n4. Enter your API key. Once the plugin is installed, you can enter it from the\n **Window \\\u003e Android Performance Tuner \\\u003e Setup** menu. On this dialog, select the\n **Settings** tab and enter the\n [API key from your Google Cloud project](/games/sdk/performance-tuner/unity/enable-api)\n into the **API key** field.\n\n | **Note:** If you don't enter your API key, Android Performance Tuner won't send your game performance data to the Google Play Console. Android Performance Tuner logs this error, and you can see the error using `adb logcat`. (You will run `adb logcat` in the next section to confirm the proper operation of Android Performance Tuner.)\n\n\n **Figure 2.** Settings tab in the plugin"]]