Configurer Firebase Features
Cette section vous guide pour installer le plugin et commencer à l'utiliser. Vous pouvez sauter les étapes optionnelles.
Si vous souhaitez utiliser le plugin pour Windows, MacOS ou Linux, les étapes sont les mêmes que pour Android.
0. Installer le plugin
- Ouvrez Fab et téléchargez le plugin
- Démarrez Unreal Engine.
- Dans la list des plugins, activez le plugin Firebase Features.
- Fermez l'Unreal Engine.
1. Créer le projet Firebase
Pour utiliser Firebase, vous avez besoin d'un projet Firebase. Pour en créer un, allez dans la console Firebase, cliquez sur Ajouter un projet
et remplissez les champs demandés pour le nouveau projet.
2. Configurer AdMob (optionnel)
Si vous souhaitez utiliser AdMob, vous devez le configurer.
Commencez par aller sur la page d'acceuil d'AdMob.
Cliquez sur
Application
>Add an Application
.Once the application is added, go to
Application Settings
Cliquez sur on
Associate with Firebase
. This last step will ask you your application's package name that you choose while creating your Firebase Project.You now need to go to
Apps
>YourApp
>App Settings
, copy the App ID and paste it inDefaultEngine.ini
with the following structure:[Firebase] AdMobApplicationId="ca-app-pub-XXXXXXXXXXXXXXXX~XXXXXXXXXX" ; Optional platform overrides, fall back to AdMobApplicationId if not set. AndroidAdMobApplicationId="ca-app-pub-XXXXXXXXXXXXXXXX~XXXXXXXXXX" iOSAdMobApplicationId="ca-app-pub-XXXXXXXXXXXXXXXX~XXXXXXXXXX"
3. Install the File google-services.json
To work, Firebase requires the file google-services.json
(or GoogleService-Info.plist
for iOS).
- Go to
Project Overview > Project Settings
- Cliquez sur on
to download the
google-services.json
file. - Now that
google-services.json
is downloaded, you need to copy it to<YourProject>/Services/
. You can then start the Editor and proceed to the next step.
The following image shows the required steps to arrive to the Download button:

If the file is invalid or placed incorrectly, you will see an error message in the output log when you start the Editor with the message Failed to create Firebase Application. Make sure the google-services.json file exists and is valid
. If this message doesn't appear, you can assume it is correctly configured.
Even if you plan to only use Firebase - Features
on iOS, we recommend to download the .json
file as well as the .plist
to test in-Editor.
Desktop platforms use the Android google-services.json
file.
4. Configuration for C++ (optional)
This step is only required if you plan to use Firebase Features through C++ code. You can safely skip it if you plan to code using Blueprints only.
Ouvrez YourProject.Build.cs
and add the following line to your module's constructor:
PrivateDependencyModuleNames.Add("FirebaseFeatures");
You need to regenerate project files for the includes to work with your code editor.
5. You are done!
If you correctly placed your google-services.json
file in the Services
folder, you can start the Unreal Engine Editor and use the plugin!
You can click on one of the modules below to access its documentation.