Step 1 - Import packages
In case you use an older version of Unity you need to add the Newtonsoft Json package. You can install it by pasting following into your manifest.json file:
"com.unity.nuget.newtonsoft-json": "3.0.1",
In the new Unity versions the Newtonsoft Json is build in to Unity. No need to install the package.
- 1.Git package repository link. The easiest way to add the Firebase dependencies and the RGN SDK into your project is to use Ready Games package distribution. You need simply put the package git repository links into
manifest.json
file. See instructions below.
Manifest.json
Unity package manager
- 1.Open
[project_dir]/Packages/manifest.json
file in your favorite text editor - 2.Paste following lines:
"com.google.external-dependency-manager": "https://github.com/readyio/ExternalDependencyManager.git#1.2.175",
"com.google.firebase.analytics": "https://github.com/readyio/FirebaseAnalytics.git#9.6.0",
"com.google.firebase.app": "https://github.com/readyio/FirebaseApp.git#9.6.0",
"com.google.firebase.auth": "https://github.com/readyio/FirebaseAuth.git#9.6.0",
"com.google.firebase.crashlytics": "https://github.com/readyio/FirebaseCrashlytics.git#9.6.0",
"com.google.firebase.database": "https://github.com/readyio/FirebaseDatabase.git#9.6.0",
"com.google.firebase.dynamic-links": "https://github.com/readyio/FirebaseDynamicLinks.git#9.6.0",
"com.google.firebase.firestore": "https://github.com/readyio/FirebaseFirestore.git#9.6.0",
"com.google.firebase.functions": "https://github.com/readyio/FirebaseFunctions.git#9.6.0",
"com.google.firebase.messaging": "https://github.com/readyio/FirebaseMessaging.git#9.6.0",
"com.google.firebase.remote-config": "https://github.com/readyio/FirebaseRemoteConfig.git#9.6.0",
"com.google.firebase.storage": "https://github.com/readyio/FirebaseStorage.git#9.6.0",
"io.getready.rgn.core": "https://github.com/readyio/RGNCore.git#0.2.3",
"io.getready.rgn.currency": "https://github.com/readyio/RGNCurrency.git#0.2.3",
"io.getready.rgn.impl.firebase": "https://github.com/readyio/RGNImplFirebase.git#0.2.3",
"io.getready.rgn.inventory": "https://github.com/readyio/RGNInventory.git#0.2.3",
"io.getready.rgn.signin.email": "https://github.com/readyio/RGNSignInEmail.git#0.2.3",
"io.getready.rgn.signin.guest": "https://github.com/readyio/RGNSignInGuest.git#0.2.3",
"io.getready.rgn.store": "https://github.com/readyio/RGNStore.git#0.2.3",
"io.getready.rgn.userprofile": "https://github.com/readyio/RGNUserProfile.git#0.2.3",
"io.getready.rgn.virtualitems": "https://github.com/readyio/RGNVirtualItems.git#0.2.3",
"io.getready.rgn.wallets": "https://github.com/readyio/RGNWallets.git#0.2.3",
If you don't need some of the functionality, you can try to remove some modules.
Partially removing some of the modules while keeping the others has not been thoroughly tested yet by the RGN team, if you encounter any issues please contact us.
The
manifest.json
file after all changes should look similar to this:
Afterwards switch to Unity and wait until the packages import finishes.
- 1.Open Unity project
- 2.Open Package Manager Window by clicking Unity menu Window->Package Manager
- 3.Click "+" button on left upper corner
- 4.Select "Add package from git URL..."
- 5.Paste the package links one by one:
https://github.com/readyio/ExternalDependencyManager.git#1.2.175
https://github.com/readyio/FirebaseApp.git#9.6.0
https://github.com/readyio/FirebaseAnalytics.git#9.6.0
https://github.com/readyio/FirebaseAuth.git#9.6.0
https://github.com/readyio/FirebaseCrashlytics.git#9.6.0
https://github.com/readyio/FirebaseDatabase.git#9.6.0
https://github.com/readyio/FirebaseDynamicLinks.git#9.6.0
https://github.com/readyio/FirebaseFirestore.git#9.6.0
https://github.com/readyio/FirebaseFunctions.git#9.6.0
https://github.com/readyio/FirebaseMessaging.git#9.6.0
https://github.com/readyio/FirebaseRemoteConfig.git#9.6.0
https://github.com/readyio/FirebaseStorage.git#9.6.0
https://github.com/readyio/RGNCore.git#0.2.3
https://github.com/readyio/RGNImplFirebase.git#0.2.3
https://github.com/readyio/RGNSignInEmail.git#0.2.3
https://github.com/readyio/RGNAchievement.git#0.2.3
https://github.com/readyio/RGNCurrency.git#0.2.3
https://github.com/readyio/RGNGameProgress.git#0.2.3
https://github.com/readyio/RGNInventory.git#0.2.3
https://github.com/readyio/RGNMatchmaking.git#0.2.3
https://github.com/readyio/RGNMessaging.git#0.2.3
https://github.com/readyio/RGNSignInGuest.git#0.2.3
https://github.com/readyio/RGNStore.git#0.2.3
https://github.com/readyio/RGNUserProfile.git#0.2.3
https://github.com/readyio/RGNVirtualItems.git#0.2.3
https://github.com/readyio/RGNWallets.git#0.2.3
Last modified 12h ago