facebook twitter hatena line email

Unity/Firebase/Realtimedatabase

提供: 初心者エンジニアの簡易メモ
2020年11月14日 (土) 17:11時点におけるAdmin (トーク | 投稿記録)による版

移動: 案内検索

Realtimedatabaseのインストール

FirebaseDatabase.unitypackageをAssets/Importからインストールする

https://firebase.google.com/download/unity?hl=ja

料金課金周り

Gcp/Firebase/RealtimeDatabase [ショートカット]

サンプル

SampleScene.cs

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

using Firebase;
using Firebase.Database;
using Firebase.Unity.Editor;

public class SampleScene : MonoBehaviour
{
    void Start()
    {
        // Get the root reference location of the database.
        DatabaseReference reference = FirebaseDatabase.DefaultInstance.RootReference;
    }
}

参考:https://firebase.google.com/docs/database/unity/retrieve-data?hl=ja