2016년 6월 22일 수요일
All compilers errors have to be fixed before you can enter playmode
Unity 실행 시 'All compilers errors have to be fixed before you can enter playmode'라는 메시지가 뜨지만 콘솔창에는 에러 메시지가 없다.
2015년 10월 18일 일요일
Asset server에 접속이 안될 때
어셋 서버에 접속이 안되서 AssetSeverControl을 다시 실행시키니
Could not start server.
메시지가 뜨면서 시작이 안 될 때 :
https://vimeo.com/63166091
Could not start server.
메시지가 뜨면서 시작이 안 될 때 :
https://vimeo.com/63166091
2013년 10월 27일 일요일
Could not launch “” notFound
. 문제 발생 상황
앱을 테스트 중 디바이스에서 테스트 앱을 삭제한 후에 이 같은 에러가 생겼다.
1. Device 분리
2. xCode 종료
3. ~/Library/Developer/Xcode/DerivedData/ 에 해당 프로젝트 폴더삭제. (모르면 다~)
4. Device 연결
5. 실행
6. 이 상태에서도 안되면 Device 재부팅
2013년 10월 24일 목요일
[OSX] PlayerPrefs 폴더
Unity reference에는 @@~LibraryPreferences folder 라고 나와있는데
실제로는 ~/Library/Preferences이다.
파일명은 unity.[company name].[product name].plist
* Finder에서 경로 열기 : (command + shift + G) 누르고 경로입력.
실제로는 ~/Library/Preferences이다.
파일명은 unity.[company name].[product name].plist
* Finder에서 경로 열기 : (command + shift + G) 누르고 경로입력.
2013년 10월 23일 수요일
WWW Loading 시 진행률
. www.isDone == false 일 때 www.progress로 진행률을 알 수 있다.
}
WWW www;
IEnumerator DownloadFile(string name)
{
www = new WWW(url + name);
print ("DownloadFile(" + url + name + ")");
yield return www;
}
void Update () {
if (www != null && www.isDone == false)
{
print ("Loading... " + (int)(www.progress * 100) + "%");
}
}
2013년 10월 22일 화요일
암호화
static public string MD5Hash(string text)
{
System.Text.UTF8Encoding utf8 = new System.Text.UTF8Encoding();
byte[] bytes = utf8.GetBytes(text);
// encrypt bytes
MD5 md5 = new MD5CryptoServiceProvider();
byte[] hashBytes = md5.ComputeHash(bytes);
// Convert the encrypted bytes back to a string (base 16)
string hash = "";
for (int i = 0; i < hashBytes.Length; i++)
{
hash += System.Convert.ToString(hashBytes[i], 16).PadLeft(2, '0');
}
return hash.PadLeft(32, '0');
}
. Unity에서 UTF-16을 사용할 수 없다.
피드 구독하기:
글 (Atom)
