전체 글 (50) 썸네일형 리스트형 unity firebase crash발생 auth사용 중 crash가 발생했다. auth.SignInWithEmailAndPasswordAsync(email, password).ContinueWithOnMainThread(task => { if (task.IsCanceled) { Debug.LogError("로그인이 취소되었습니다."); UITextController.currentState = 12;//100은 에러 타입 return; } if (task.IsFaulted) { Debug.LogError("로그인 중 오류가 발생했습니다: " + task.Exception); UITextController.currentState = 11; return; } if (task.IsCompletedSuccessfully)// 로그인 성공 { Debug.. 비동기 함수 사용시 UI업데이트 비동기 함수에서는 UI업데이트가 안된다. 다른 스레드에서 작동되기 때문이다.(Unity는 일반적으로 메인스레드만 사용한다.) private IEnumerator UpdateState() { WaitForSeconds delay = new WaitForSeconds(1.5f); while (true) { if (notifyType == 1)//계정 생성 성공 { notifyText.text = "Create account success"; notifyType = 0; Invoke("ClearNotifyText", 5f); } else if (notifyType == 10)//로그인 성공 { notifyText.text = "Log in success"; notifyType = 0; Invoke("Clear.. Firebase Storage MetaShop 이전 1 ··· 7 8 9 10 11 12 13 ··· 17 다음