realtime
06. Firebase Realtime Database - 심화
🔷 Firebase 심화 데이터 구조가 앞서 포스팅한 예제처럼 간단하지 않을 경우, 아래의 글을 참조 🔶 파이어베이스 데이터 구조 - 위와 같이 데이터 구조를 생성 🔷 Load data using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; // Firebase 네임스페이스 선언 using Firebase; using Firebase.Database; public class FirebaseManager : MonoBehaviour { // 저장할 데이터 UI public InputField userName; public InputField gold; // 로..
05. Firebase Realtime Database - Delete
🔷 Delete Data using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; // Firebase 네임스페이스 선언 using Firebase; using Firebase.Database; // Firebase에 저장할 데이터 구조 public class User { public string userName; public int gold; // 생성자 public User(string _userName, int _gold) { this.userName = _userName; this.gold = _gold; } } public class FirebaseM..
04. Firebase Realtime Database - Select
🔷 Select Data using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; // Firebase 네임스페이스 선언 using Firebase; using Firebase.Database; // Firebase에 저장할 데이터 구조 public class User { public string userName; public int gold; // 생성자 public User(string _userName, int _gold) { this.userName = _userName; this.gold = _gold; } } public class FirebaseM..
03. Firebase Realtime Database - Load
🔷 주의할 점 ...정말 별 거 아닌 걸로 몇시간씩이나 소비해서 힘들었다. 데이터를 로드하는 것은 성공하였지만, UI의 text가 바뀌지 않아서 골머리를 썩었다. 문제는 task 안쪽에다가 UI.text를 바꾸는 코드를 작성해서 그런 것이었다. 데이터가 로드될 때까지 기다렸다가 UI.text를 바꾸는 코드를 작성하니 해결되었다. 🔷 Load Data using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; // Firebase 네임스페이스 선언 using Firebase; using Firebase.Database; // Firebase에 저장할 데이터 구조 ..
02. Firebase Realtime Database - Insert
🔷 Realtime Database 세팅 🔶 Firebase - Realtime Database - 데이터베이스 만들기 - 다음 - 테스트 모드에서 시작 - 사용 설정 - '+' 기호 - 데이터 아무거나 기입 > 추가 - 데이터가 삽입된 것을 확인 - X 를 눌러 데이터 삭제 - 클릭하여 주소 복사 🔶 Unity { "project_info": { "project_number": "878253878040", "project_id": "fir-demo-3c2bb", "storage_bucket": "fir-demo-3c2bb.appspot.com", "firebase_url": "https://fir-demo-3c2bb-default-rtdb.firebaseio.com/" }, "client": [ { "..