-
유니티에서 PlayerPrefs(로컬DB)에 값을 저장하려는데 해당 키가 존재하지 않을 경우를 체크하려면 if(PlayerPrefs.GetString("key") == null) 이 아닌 if(!PlayerPrefs.HashKey("key"))로 확인 할 수 있다. 이는 PlayPrefs의 해시키에 'key'라는 키가 존재 하지 않음을 의미한다. -끝-