본문 바로가기

Unity52

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; // 로.. 2021. 8. 15.
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.. 2021. 8. 14.
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.. 2021. 8. 13.
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에 저장할 데이터 구조 .. 2021. 8. 12.
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": [ { ".. 2021. 8. 11.
02. Git repository 만들기 🔷 Git repository 생성🔶 documenthttps://git-scm.com/book/ko/v2/Git%EC%9D%98-%EA%B8%B0%EC%B4%88-Git-%EC%A0%80%EC%9E%A5%EC%86%8C-%EB%A7%8C%EB%93%A4%EA%B8%B0 Git - Git 저장소 만들기2.1 Git의 기초 - Git 저장소 만들기 Git을 사용하는 방법을 알고 싶은데 한 챕터밖에 읽을 시간이 없다면 이번 챕터를 읽어야 한다. Git에서 자주 사용하는 명령어는 모두 2장에 등장한다. 2장을 다git-scm.com - git 페이지에서는 위의 두가지 방법이 나와있다.- 2가지 방법 + vscode에서 유니티프로젝트를 포함한 git 레파지토리를 만드는 방법을 정리 🔶 작업물을 레파.. 2021. 8. 8.
반응형