파이어베이스

    에러 : Firebase Github

    🔷 상황 파이어베이스 관련 패키지를 임포트한 후 깃허브에 올릴려고하면 아래와 같은 에러가 발생한다. attributes 파일에 .so 확장자를 넣어봤는데, 뭔가 되긴하는데....conflict 지옥에 빠지게 된다. 🔶 에러메세지 File Assets/Firebase/Plugins/x86_64/FirebaseCppApp-8_3_0.so is 117.11 MB; this exceeds GitHub's file size limit of 100.00 MB 🔷 해결방법 git lfs track "Assets/Firebase/Plugins/x86_64/FirebaseCppApp-8_3_0.so" - 이번에는 8.3.0 버전으로 임포트했기때문에 위와 같이 입력 - 상황에 따라 버전을 바꿔주면 됨

    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": [ { "..