Unity

Unity/에러

UGUI 버튼 클릭이 안 됨

잘 되던 버튼이 있는 씬을 복사해서 새로 만든 씬이였는데 버튼이 안 눌리고 GUI관련한 클릭 처리가 안 되었다. 인터넷에 검색해보니 EventSystem관련한 이야기가 보였다 그리고 나의 Hierarchy를 보니 Canvas 친구인 EventSystem이 없었다.. 내가 실수로 삭제했었나보다 EventSystem를 만들어주자마자 모든 처리가 잘 된다.. 금방 알아서 다행이다.

Unity/공부

Oracle Unity C#

Oracle.DataAccess.dll C:\Program Files\Unity5.6.3f1\Editor\Data\Mono\lib\mono\unity 에 있는System.Data.dll 을 유니티 프로젝트 안에 plugins에 넣음

Unity/에러

The Assembly System.Configuration is referenced by System.Data

문제 sqlite로 데이터베이스를 쓰는 유니티 프로젝트를 안드로이드 앱으로 빌드했다.해당 앱을 설치한 후에 앱 아이콘을 눌러 실행을 시도하면 오류메세지도 없이 앱 실행이 되지 않았다.빌드 하던 중에 유니티 로그에서 아래 오류 메세지가 떠있는 걸보고 그걸로 해결하려고 했다. 오류 메세지 ArgumentException: The Assembly System.Configuration is referenced by System.Data ('Assets/Plugins/System.Data.dll'). But the dll is not allowed to be included or could not be found.UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurs..

Unity/에러

You are trying to create a MonoBehaviour using the 'new' keyword. This is not allowed.

You are trying to create a MonoBehaviour using the 'new' keyword. This is not allowed. MonoBehaviours can only be added using AddComponent(). Alternatively, your script can inherit from ScriptableObject or no base class at allUnityEngine.MonoBehaviour:.ctor() 그럼 new말고 어떻게 쓰라는건지..AddComponent()를 new대신 어떻게 쓰라는 건지..이해가 안되는군

Unity/공부

SQLite Unity C#

작업환경Unity 5.6.0f2 Personal (64bit)SQLite version 3.18.0. 일단 Sqlite 파일을 받는다http://www.sqlite.org/download.html 나는 이걸로 받았다.64-bit DLL (x64) for SQLite version 3.18.0. 받은 sqlite 압축파일의 압축을 풀어준다.폴더안에 들어있는 sqlite3.defsqlite3.dll파일을 유니티 프로젝트 폴더 Assets/Plugins 안에 넣어준다. Plugins폴더가 없으면 새 Plugins폴더를 만들면 된다. 이름은 같게 해서 ㅇㅇ DB관리를 위해sqlitebrowser를 다운 받는다https://github.com/sqlitebrowser/sqlitebrowser 새 데이터베이스를 만..

Unity/에러

유니티 안드로이드 빌드오류

참고http://stackoverflow.com/questions/42538433/not-finding-android-sdk-unity# 문제 위에 링크 글 보고 해결하긴 했다.

개발세탁기
'Unity' 카테고리의 글 목록