본문 바로가기
728x90

Unity/Unity 관련 오류 해결14

Unassigned Reference Exception Error 발생 원인과 해결 The variable clip of inputMic has not been assigned. You probably need to assign the clip variable of the inputMic script in the inspector. 위와 같은 메세지의 에러 이슈를 만났고, Consol 창에서 해당 에러를 더블 클릭해도 해당 위치로 이동하지 않아서 잠깐 사고 회로가 멈췄었다. 그러던 중, 아래에서 문제가 발생한 위치와 스크립트 제목을 본 순간, 해당 문제가 왜 발생했는지 알 수 있었고, 해결방법 또한 알 수 있었다. 이 글은 이와 같은 유사한 문제가 또 발생했을 때, 즉각적으로 대처하기 위한 목적으로 작성한다.. 2021. 5. 24.
ArgumentOutOfRangeException 에러 원인과 해결 ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index 생성된 리스트의 크기를 초과한 인덱스의 크기 때문에 발생하는 문제점. 해당 이슈가 발생했었던 부분은 다음과 같다. private void DolphinCenterSpawn() { Vector3 screenCenter = Camera.current.ViewportToScreenPoint(new Vector3(0.5f, 0.5f)); List hits = new List(); aRRaycastManager.Raycast(screenCenter, hits, Track.. 2021. 5. 24.
패키지 매니저 로그인 오류 이슈 [PackageManager] Error User not logged in UnityEditor.PackageManager.UI.PackageManagerWindow 에 대한 대처법. 참조 링크 : https://issuetracker.unity3d.com/issues/package-manager-user-not-logged-in-error-appears-if-the-editor-is-launched-with-the-my-assets-tab-open Unity IssueTracker - [Package Manager] User Not Logged In error appears if the editor is launched with the My Assets tab open If you launch the .. 2021. 5. 21.
InvalidCastException: Specified cast is not valid. public ArrayList valueList = new ArrayList(); public void AnalyzeSound() { float[] rmsList = new float[] { resultValue }; valueList.AddRange(rmsList); foreach (int k in valueList)// 에러 발생 라인 { Debug.Log("List Value : " + k); } } // 수정 후 코드 라인 public void AnalyzeSound() { float[] rmsList = new float[] { resultValue }; valueList.AddRange(rmsList); foreach (var k in valueList)// 에러 발생 라인 { Debug.Lo.. 2021. 5. 4.