Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Hem .NET 3.X hem de .NET 4.X için tüm .unitypackage dosyaları içeren büyük bir .zip dosyası indirmek yerine Google APIs for Unity sitesinden tek tek paketleri indirebilirsiniz.
Sitede sunulanlar:
Öğe paketleri olarak içe aktarılacak bağımsız .NET 4.X .unitypackage dosyaları.
Unity Paket Yöneticisi kullanılarak içe aktarılacak ayrı .tgz arşivleri.
Bu, özellikle uygulamanız tek bir Firebase ürünü kullandığında faydalıdır. Çünkü bağımsız .unitypackage dosyaları gereken tüm bağımlılıkları içerir ve .tgz dosyaları, bağımlı oldukları ilgili .tgz dosyalarıyla birlikte listelenir.
Bu sayfada Unity Paket Yöneticisi ile ilgili talimatlar yer almaktadır. Bu nedenle, Unity belgelerinden bu araç hakkında bilgi edinmeniz önerilir.
Firebase paketlerini öğe olarak içe aktarma
Google APIs for Unity sitesinden indirilen .unitypackage dosyalarından Firebase ürünlerini içe aktarırken şunları göz önünde bulundurun:
Projenizde birden fazla Firebase ürünü kullanıyorsanız tüm Firebase ürünlerini indirip aynı sürüme yükseltmeniz gerekir.
İçe aktarma yöntemlerini tek bir projede karıştırmayın. Yani Firebase ürünlerini Asset Package akışıyla ve Unity Package Manager akışını kullanarak içe aktarmayın.
İndirdikten sonra içe aktarmak için:
Açık Unity projenizde Öğeler > Paket İçe Aktar > Özel Paket'e gidin.
Unity Paketini İçe Aktar penceresinde İçe Aktar'ı tıklayın.
Unity Package Manager'ı kullanarak Firebase paketlerini içe aktarma
Google APIs for Unity arşivinden indirilen .tgz dosyalarından Firebase ürünlerini içe aktarırken aşağıdakileri göz önünde bulundurun:
Bu yöntem yalnızca 2018.3 ve sonraki sürümlerde kullanılabilir.
Projenizde birden fazla Firebase ürünü kullanıyorsanız tüm Firebase ürünlerini indirip aynı sürüme yükseltmeniz gerekir.
İçe aktarma yöntemlerini tek bir projede karıştırmayın. Yani Firebase ürünlerini, öğe paketi akışıyla ve Unity Paket Yöneticisi akışıyla içe aktarmayın.
Her ürün .tgz dosyası için bağımlılıklar, kendi .tgz dosyalarında birlikte bağlanır. Ürün .tgz dosyasını ve bağımlılık .tgz dosyalarını doğru sırada indirip içe aktarmanız gerekir:
Projenizde kullanılan Firebase ürünleri. Realtime Database veya Cloud Storage kullanıyorsanız önce Authentication (com.google.firebase.auth) öğesini içe aktarın.
İndirdikten sonra aşağıdaki yöntemlerden birini kullanarak .tgz dosyalarını projenize aktarın:
Paket Yöneticisi kullanıcı arayüzü
Unity'nin Paket Yöneticisi penceresini açın.
Paket Yöneticisi penceresinin sol üst köşesindeki + simgesini tıklayın ve dosya tarayıcısını açmak için Add package from tarball simgesini seçin.
Dosya tarayıcısında istediğiniz tarball'u seçin.
Unity 2019'un bazı eski sürümlerinde tarball'ların doğrudan eklenmesi desteklenmez.
Bu durumda yapmanız gerekenler:
.tgz dosyasını arşivden çıkartın.
Paket Yöneticisi penceresinin sol üst köşesindeki + simgesini tıklayın ve dosya tarayıcısını açmak için Add package from disk simgesini seçin.
Dosya tarayıcısında çıkarılan klasörü seçin.
manifest.json
Projenizin Packages klasörünün yanında yeni bir klasör oluşturun ve GooglePackages olarak adlandırın.
.tgz dosyalarını bu klasöre yerleştirin.
Unity projenizdeki Packages/manifest.json klasörünü açmak için bir metin düzenleyici kullanın.
İçe aktarmak istediğiniz her paket için bir giriş ekleyin ve paket adını diskteki konumla eşleyin. file: dosya yoluna .tgz eklediğinizden emin olun. Örneğin, com.google.firebase.storage ve bağımlılıklarını içe aktarıyorsanız manifest.json şu şekilde görünür:
Bazı durumlarda, Firebase ürünlerini izlemek için Unity Package Manager'ı kullanmaktan Assets klasöründeki ürünleri içe aktarmaya geçmek isteyebilirsiniz.
Hangi içe aktarma yöntemini kullandığınızdan emin değilseniz Unity projesi klasörünüzde Packages/manifest.json dosyasını açın. Dosya, com.google.firebase ile başlayan girişler içeriyorsa projeniz içe aktarma için Unity Package Manager'ı kullanmıştır.
Öğe paketlerine geçmek için:
Projenizdeki mevcut Firebase paket sürümlerini not edin ve bunları kaldırın.
İçe aktarılan Firebase paketlerinin sürümlerini not edin.
Her paket adını ve ardından Kaldır'ı tıklayın. Firebase paketlerinin yanı sıra External Dependency Manager paketini (.com.google.external-dependency-manager) de kaldırdığınızdan emin olun.
Yeni .unitypackage dosyalarını indirip içe aktarın. İki seçeneğiniz vardır:
Her paketin en son sürümüne yükseltebiliyorsanız Firebase Unity SDK zip dosyasını indirip Firebase'i Unity projenize ekleme bölümünde açıklandığı şekilde içe aktarın.
Mevcut .unitypackage sürümlerini korumanız gerekiyorsa bu sayfada yukarıda açıklandığı gibi tek tek paketleri indirebilir ve içe aktarabilirsiniz.
Öğe paketlerinden Unity Package Manager'a geçiş
Bazı durumlarda, ürünleri Assets klasörüne aktarmak yerine Unity Package Manager ile içe aktarmak ve izlemek isteyebilirsiniz.
Hangi içe aktarma yöntemini kullandığınızdan emin değilseniz Unity projesi klasörünüzde Packages/manifest.json dosyasını açın. Dosya, com.google.firebase ile başlayan girişler içeriyorsa projeniz içe aktarma için Unity Package Manager'ı kullanıyordur.
Unity Paket Yöneticisi'ne geçmek için:
Aşağıdaki yöntemlerden birini kullanarak tüm Firebase paketlerinin ve External Dependency Manager paketinin Assets klasöründen kaldırıldığından emin olun.
[[["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-09-03 UTC."],[],[],null,["\u003cbr /\u003e\n\nRather than downloading a large `.zip` file containing all `.unitypackage`\nfiles for both .NET 3.X and .NET 4.X, you can download individual packages from\nthe [Google APIs for Unity site](https://developers.google.com/unity/packages).\n\nThe site provides:\n\n- Individual .NET 4.X `.unitypackage` files to import as Asset packages.\n- Individual `.tgz` archives to import using Unity Package Manager.\n\nThis is especially useful when your app uses a single Firebase product, since\nthe individual `.unitypackage` files contain all needed dependencies, and the\n`.tgz` files are listed alongside related `.tgz` files on which they depend.\n\nThis page provides instructions involving Unity Package Manager, so it's a good\nidea to learn about the tool [from the Unity documentation](https://docs.unity3d.com/Manual/Packages.html).\n| **Note:** If you still need to use .NET 3.x, download the entire Firebase SDK as described in [Add Firebase to your Unity project](/docs/unity/setup#add-sdks).\n\nImport Firebase packages as Assets\n\nWhen importing Firebase products from `.unitypackage` files downloaded from\n[Google APIs for Unity site](https://developers.google.com/unity/packages),\nkeep the following in mind:\n\n- If you are using multiple Firebase products in your project, you must download\n and upgrade all Firebase products to the same version.\n\n- Do not mix import methods in one project. That is, do not import\n Firebase products with the Asset package flow and using the Unity Package\n Manager flow.\n\nAfter downloading, to import:\n\n1. In your open Unity project, navigate to **Assets** \\\u003e **Import Package** \\\u003e\n **Custom Package**.\n\n2. In the *Import Unity Package* window, click **Import**.\n\nImport Firebase packages using Unity Package Manager\n\nWhen importing Firebase products from `.tgz` files downloaded from the [Google APIs for Unity archive](https://developers.google.com/unity/archive), keep the following in mind:\n\n- This method is only available in 2018.3+.\n\n- If you are using multiple Firebase products in your project, you must download\n and upgrade all Firebase products to the same version.\n\n- Do not mix import methods in one project. That is, do not import\n Firebase products with the Asset package flow and with the Unity Package Manager\n flow.\n\n- Dependencies for each product `.tgz` file are linked alongside in their own\n `.tgz` files. You must download and import the product `.tgz` file and\n dependency `.tgz` files, in the correct order:\n\n 1. External Dependency Manager (`com.google.external-dependency-manager`)\n 2. Firebase Core (`com.google.firebase.app`)\n 3. Firebase products used in your project. If you use Realtime Database or Cloud Storage, import Authentication (`com.google.firebase.auth`) first.\n\nAfter downloading, import `.tgz` files into your project using one of the\nfollowing methods: \n\nPackage Manager UI\n\n1. Open Unity's Package Manager window.\n2. Click the `+` icon in the top-left corner of the Package Manager window and select `Add package from tarball` to open the file browser.\n3. Select the desired tarball in the file browser.\n\nSome older versions of Unity 2019 do not support adding tarballs directly.\nIn this case, you will need to:\n\n1. Unzip the `.tgz` file.\n2. Click the `+` icon in the top-left corner of the Package Manager window and select `Add package from disk` to open the file browser.\n3. Select the extracted folder in the file browser.\n\nmanifest.json\n\n1. Create a new folder next to your project's `Packages` folder and name it `GooglePackages`.\n2. Place the `.tgz` files into that folder.\n3. Use a text editor to open `Packages/manifest.json` under your Unity project folder.\n4. Add an entry for each package you want to import, mapping the package name\n to the location on disk. Be sure to append `file:` to the `.tgz` file path. For\n example, if you were importing `com.google.firebase.storage` and its\n dependency's, your `manifest.json` would look like this:\n\n {\n \"dependencies\": {\n \"com.google.external-dependency-manager\": \"file:../GooglePackages/com.google.external-dependency-manager-1.2.164.tgz\",\n \"com.google.firebase.app\": \"file:../GooglePackages/com.google.firebase.app-7.1.0.tgz\",\n \"com.google.firebase.auth\": \"file:../GooglePackages/com.google.firebase.auth-7.1.0.tgz\",\n \"com.google.firebase.storage\": \"file:../GooglePackages/com.google.firebase.storage-7.1.0.tgz\",\n // com.unity package entries...\n }\n }\n\n5. Save the `manifest.json` file.\n\n6. When Unity regains focus it will reload the `manifest.json` and import the\n newly-added packages.\n\nSome older versions of Unity do not support `.tgz` files in the `manifest.json`.\nIn this case, you should:\n\n1. Unzip the `.tgz` file.\n2. Edit your `manifest.json` to use the path to the extracted folder, instead\n of the `.tgz` file, like so:\n\n {\n \"dependencies\": {\n \"com.google.external-dependency-manager\": \"file:../GooglePackages/com.google.external-dependency-manager-1.2.164\",\n \"com.google.firebase.app\": \"file:../GooglePackages/com.google.firebase.app-7.1.0\",\n \"com.google.firebase.auth\": \"file:../GooglePackages/com.google.firebase.auth-7.1.0\",\n \"com.google.firebase.storage\": \"file:../GooglePackages/com.google.firebase.storage-7.1.0\",\n // com.unity package entries...\n }\n }\n\nMigrate from Unity Package Manager to Asset packages\n\nIn some cases, you might want to switch from using Unity Package Manager to\ntrack Firebase products, to importing products under the `Assets` folder.\n\nIf you're not sure which import method you're using, in your Unity project\nfolder, open the file `Packages/manifest.json`. If the file contains entries\nstarting with `com.google.firebase`, your project used Unity Package Manager for\nimport.\n\nTo migrate to Asset packages:\n\n1. Note current Firebase package versions in your project and remove them.\n\n 1. From the **Window** menu, select **Package Manager** . In the *Package\n Manager* window, make sure \"Packages: In Project\" is selected.\n 2. Note the versions of imported Firebase packages.\n 3. Click on each package name, then click **Remove** . Be sure to remove the External Dependency Manager package (`.com.google.external-dependency-manager`) as well as Firebase packages.\n2. Download and import replacement `.unitypackage` files. You have two options:\n\n - If you can upgrade to the latest version of each package, download the Firebase Unity SDK zip file and import as described in [Add Firebase to\n your Unity project](/docs/unity/setup#add-sdks).\n - If you need to preserve current `.unitypackage` versions, you can download and import individual packages as described [above](#alternative_individual_unitypackages) on this page.\n\nMigrate from Asset packages to Unity Package Manager\n\nIn some cases, you might want to switch from importing products under the\n`Assets` folder to importing and tracking products with Unity Package Manager.\n\nIf you're not sure which import method you're using, in your Unity project\nfolder, open the file `Packages/manifest.json`. If the file contains entries\nstarting with `com.google.firebase` your project is already using Unity Package\nManager for import.\n\nTo migrate to Unity Package Manager:\n\n1. Make sure all Firebase packages and the External Dependency Manager package\n are removed from the `Assets` folder, using either of the following methods.\n\n EDM4U UI\n\n\n 1. In your open Unity project, navigate to **Assets \\\u003e External\n Dependency Manager \\\u003e Version Handler \\\u003e Uninstall Managed\n Packages**.\n 2. Select all Firebase packages and External Dependency Manager.\n 3. Click **Uninstall Selected Package**.\n\n \u003cbr /\u003e\n\n Manual removal\n\n Using file system tools, manually delete the following folders:\n - `Assets/Editor Default Resources/Firebase`\n - `Assets/ExternalDependencyManager`\n - `Assets/Firebase`\n - `Assets/Parse`\n - `Assets/Plugins/iOS/Firebase`\n2. Import packages using Unity Package Manager, as described [above](#alternative_unity_package_manager)\n on this page."]]