커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
안드로이드 빌드 설정 오류
게임 개발이 처음이어도 쉽게 배우는 모바일 게임 개발
5주차
북마크
윤*영
댓글
7
추천
0
조회수
24
조회수
24
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


Bulid setting에서 Android로 Unity Hub에서 설치 다운로드 후 첫번째 오류가 생겨 Unity를 끄고 다시 키니 사라졌습니다!

그리고 두번째 오류가 발생하는데 구글링을 해봐도 Repaint하는 동안 GUI의 문제인지 버전의 문제인지 못 찾아서 질문드립니다!

콘솔 창 전체에 나온 오류는 밑에 보시면 나오고, 스크립트를 뒤져봐도 스크립트에서 다른 새로운 문구가 적혀있진 않습니다!


스파르타 즉문즉답




작성한 코드 및 에러 메세지

ArgumentException: Getting control 1's position in a group with only 1 controls when doing repaint

Aborting

UnityEngine.GUILayoutGroup.GetNext () (at <d26551307ee24906965335845380d4a1>:0)

UnityEngine.GUILayoutUtility.DoGetRect (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <d26551307ee24906965335845380d4a1>:0)

UnityEngine.GUILayoutUtility.GetRect (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <d26551307ee24906965335845380d4a1>:0)

UnityEngine.GUILayout.DoButton (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <d26551307ee24906965335845380d4a1>:0)

UnityEngine.GUILayout.Button (System.String text, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <d26551307ee24906965335845380d4a1>:0)

UnityEditor.Android.AndroidBuildWindowExtension.DoTargetListUnsafe () (at <6542399aa1cb4f1c8de3e43116fd1b96>:0)

UnityEditor.Android.AndroidBuildWindowExtension.DoTargetList () (at <6542399aa1cb4f1c8de3e43116fd1b96>:0)

UnityEditor.Android.AndroidBuildWindowExtension.ShowPlatformBuildOptions () (at <6542399aa1cb4f1c8de3e43116fd1b96>:0)

UnityEditor.BuildPlayerWindow.ShowBuildTargetSettings () (at <5e6ebaa7d75c4d5399dc81ecead6b43f>:0)

UnityEditor.BuildPlayerWindow.OnGUI () (at <5e6ebaa7d75c4d5399dc81ecead6b43f>:0)

UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <5e6ebaa7d75c4d5399dc81ecead6b43f>:0)

UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <5e6ebaa7d75c4d5399dc81ecead6b43f>:0)

UnityEditor.DockArea.OldOnGUI () (at <5e6ebaa7d75c4d5399dc81ecead6b43f>:0)

UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <383db090fd544f24b368fd389016a28f>:0)

UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <383db090fd544f24b368fd389016a28f>:0)

UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <383db090fd544f24b368fd389016a28f>:0)

UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <383db090fd544f24b368fd389016a28f>:0)

Rethrow as ImmediateModeException

UnityEngine.UIElements.UIR.RenderChain.Render () (at <383db090fd544f24b368fd389016a28f>:0)

UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <383db090fd544f24b368fd389016a28f>:0)

UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <383db090fd544f24b368fd389016a28f>:0)

UnityEngine.UIElements.Panel.UpdateForRepaint () (at <383db090fd544f24b368fd389016a28f>:0)

UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <383db090fd544f24b368fd389016a28f>:0)

UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <383db090fd544f24b368fd389016a28f>:0)

UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <383db090fd544f24b368fd389016a28f>:0)

UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <383db090fd544f24b368fd389016a28f>:0)

UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <383db090fd544f24b368fd389016a28f>:0)

UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <d26551307ee24906965335845380d4a1>:0)오류 발생 시, 작성한 코드 전체와 에러 메시지를 첨부해 주세요.

Tip 1) </> 아이콘을 눌러 코드박스를 만들어 보세요.

Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!




취소
 공유
취소
댓글 0
댓글 알림
나의얼굴