it leader
[Unity3D] PlayerPrefs를 이용한 데이터 저장, 불러오기
코딩공부/Unity3D 2015. 12. 24. 18:17

PlayerPrefs를 이용해여 데이터를 로컬에 저장하는 방법 저장 PlayerPrefs.Set자료형(“문자열 키값”, 저장하고자 하는 값 ); PlayerPrefs.SetInt(string key, int value); PlayerPrefs.SetFloat(string key, float value); PlayerPrefs.SetString(string key, string value); //ex) //최근 점수라는 키값으로 저장을 하고자 할 떄 (tmpScore); int score = 10; PlayerPrefs.SetInt(“tmpScore”, score); 2. 불러오기 PlayerPref.Get자료형(“저장했던 키값”, 초기화값); PlayerPref.GetInt(string key, int ..