회원 로그인
|
유니티 경고, 에러 모음 (재정리 예정)
유니티 경고, 에러 모음
C# Compiler Errors (Visual Studio 2015) 링크 : 콘솔에서 나오는 모든 C# 스크립트 에러 확인 가능 |
경고!! Assets/sample.cs(24,23): warning CS0219: The variable `distanceOfit' is assigned but its value is never used Assets/sample.cs(24,23): 경고 CS0219: 변수 `distanceOfit'은 지정되어 있지만 값이 사용되지 않았다. |
에러!! Assets/sample.cs(12,24): error CS0029: Cannot implicitly convert type `int' to `string' Assets/sample.cs(12,24): 오류 CS0029: 'int'(정수형)을 'string'(문자열) 타입으로 변환할 수 없다. |
에러!! NullReferenceException sample.Start () (at Assets/sample.cs:10) 변수를 생성하고 값을 지정하지 않으면 오류 발생 |
에러!! NullReferenceException: Object reference not set to an instance of an object 오브젝트 참조가 오브젝트의 인스턴스로 설정되지 않았다. |
에러!! error CS0428: Cannot convert method group `GetComponent' to non-delegate type `UnityEngine.Animator'. Consider using parentheses to invoke the method. GetComponent를 변환 할 수 없습니다. 메소드를 호출하기 위해 괄호를 사용하는 것이 좋습니다. 해결 GetComponent<>();인데 ()이 빠졌을 때 나오는 에러 |
에러!! Can't add script component 'NewBehaviourScript' because the script class cannot be found. Make sure that there are no compile errors and that the name and class name match. 해결 컴포넌트에 넣을 때 나오는 에러로 스크립트 파일명과 Class명이 맞지 않았을 때 나오는 에러 |
에러!! TrySetString can only be called from the main thread. Constructors and field initializers will be executed from the loading thread when loading a scene. 해결 클래스 안에 바로 참조하면 나오는 에러, 참조를 Awake()나 Start()에 한다. |
에러!! IndexOutOfRangeException: Array index is out of range. GameObject[] _objectArray = new GameObject[5]; //선언 초기화 시 에러 // Awake()나 Start()에서 초기화 해준다. GameObject[] _objectArray = null; void Awake() { // 또는 Start() GameObject[] _objectArray = new GameObject[5]; } |
에러!! CommandInvokationFailure: Failed to build apk. 해결 keystore 오류. keystore 경로나 암호 제대로 넣기. 참고) http://answers.unity3d.com/questions/621759/building-error-not-a-file-.html |
에러!! (2017.1.0f3, GVR 1.70.0) Google CardBoard 등록 후 사용 시 On Android 'Play Settings > Virtual Reality Supported' setting must be checked. Please fix this setting and rebuild your app. On Android 'Play Settings > Virtual Reality SDKs' must include 'Daydream' or 'Cardboard'. Please fix this setting and rebuild your app. 해결 사용하려면 Virtual Reality Supported 체크 후 DayDream이나 Cardboard를 선택하라고 한다. |
에러!! (2017.1.0f3, GVR 1.70.0) VR AndroidManifest 에러 UnityException: Minimum API Level Not Supported on Requested VR Device Cardboard Requires a Minimum API Level of 19. Error building Player: UnityException: Minimum API Level Not Supported on Requested VR Device Cardboard Requires a Minimum API Level of 19. UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors. 해결 Play Setting에서 API 버전을 최소 19, 최대 24로 사용(2017.1.0f3) |
오류!! (2017.1.0f3) GvrPointerGraphicRaycaster requires GvrPointer to have a Camera when in Direct mode. 해결 GvrReticlePointer의 Raycast Mode를 Camera로 변경. 참고> https://github.com/googlevr/gvr-unity-sdk/issues/666 |
오류!! (2017.1.0f3) Animator 사용 시 Null Reference Exception, UnityEditor.Graphs.ParameterControllerView.HasKeyboardControl () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/ParameterControllerView.cs:762) 이라고 나오면서 Animator 창에 클릭할 수록 에러 카운트가 된다. 해결 유니티 다시 시작 참고> http://answers.unity3d.com/questions/1020334/unexplanable-null-refrence-exception.html |
오류!! (2017.1.0f3) KeyNotFoundException:The given key was not present in the dictionary. UnityEditor.DockArea:OnEnable() System.Collections.Generic.Dictionary `2[System.String,UnityEditor.Graphs.AnimationStateMachine.EdgeInfo].get_Item (System.String key) 유니티 창이 너무 작아 나오는 오류로 유니티 전체 창을 키우면 된다. |
오류 (2018.2.3f1) CommandInvokationFailure: Gradle build failed. C:/Program Files/Java/jdk1.8.0_112\bin\java.exe -classpath "E:\Program\Unity 5.6.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-2.14.jar" org.gradle.launcher.GradleMain "assembleRelease" 빌드 시 오류, 안드로이드 SDK Manager에서 Android SDK Build-tools 28.x을 인스톨 한다. 참고 https://forum.unity.com/threads/commandinvokationfailure-gradle-build-failed.479460 |
기타 null UnityEngine.Debug:Log(Object) 변수의 값이 없으면 null로 출력 |
댓글 1개
| 엮인글 0개
146개(2/8페이지)
번호 | 제목 | 글쓴이 | 조회 | 날짜 |
---|---|---|---|---|
유니티 강좌 모음(영문) | 푸딩뱃살 | 60404 | 2013.08.28 12:02 | |
>> | 유니티 경고, 에러 모음 (재정리 예정) [1+1] | 푸딩뱃살 | 71375 | 2013.08.12 00:09 |
124 | [스트립트] VR Cardboard 토글 | 푸딩뱃살 | 2665 | 2017.08.17 17:36 |
123 | [참고] Unitypackage Unpacker [1+1] | 푸딩뱃살 | 4037 | 2017.08.08 17:02 |
122 | [유니티] Unite 2017 서울 - 발표 자료 링크 | 푸딩뱃살 | 5527 | 2017.05.31 10:13 |
121 | [유니티] Terrain Setting - Resolution | 푸딩뱃살 | 2780 | 2017.05.25 00:12 |
120 | [유니티] Unite 2013 - Real-time facial animation with Mixamo and | 푸딩뱃살 | 2974 | 2017.05.22 18:12 |
119 | [유니티] Unite 2016 서울 다시보기 | 푸딩뱃살 | 2619 | 2017.05.18 09:49 |
118 | [유니티] 유니티 프로그램 빌드 과정 | 푸딩뱃살 | 2555 | 2017.03.26 14:32 |
117 | [VR/AR] Google Cardboard VR (GVR) 임포트 시 | 푸딩뱃살 | 2146 | 2017.03.19 21:05 |
116 | [유니티] 맥os 안드로이드 SDK와 JDK 경로 | 푸딩뱃살 | 2210 | 2017.03.09 11:44 |
115 | [유니티] Failed to compile resuources with the following paramet | 푸딩뱃살 | 4464 | 2017.03.04 10:20 |
114 | [유니티] 3D파일 Animation의 Read-Only | 푸딩뱃살 | 6882 | 2016.07.22 15:13 |
113 | [스트립트] List를 사용한 코루틴 모두 실행 | 푸딩뱃살 | 3716 | 2016.04.28 01:17 |
112 | [유니티] 특정 Scene에서 Sprite 깨짐 현상 | 푸딩뱃살 | 8631 | 2016.03.03 01:27 |
111 | [유니티] 구글 플레이 서비스 에러: CommandInvokationFailure | 푸딩뱃살 | 13778 | 2016.02.29 18:51 |
110 | [스트립트] 해상도 구하기 | 푸딩뱃살 | 3975 | 2016.02.28 23:13 |
109 | [스트립트] Android (반)자동 Setting | 푸딩뱃살 | 4133 | 2016.02.04 15:24 |
108 | [스트립트] Invoke() / InvokeRepeating() | 푸딩뱃살 | 7353 | 2016.02.04 14:45 |
107 | [스트립트] DontDestroyOnLoad() | 푸딩뱃살 | 6697 | 2016.01.29 13:20 |
106 | [스트립트] 버젼 관리 | 푸딩뱃살 | 3326 | 2016.01.20 15:48 |
105 | [유니티] 서버를 이용한 inApp 프로세스 | 푸딩뱃살 | 3992 | 2016.01.12 12:32 |