해결된 질문
작성
·
2.6K
0
이벤트 함수 start를 작성하고 불러왔더니 이런 오류가 뜹니다. 뭘 잘못한 걸까요?
[오류 메세지]
EndLayoutGroup: BeginLayoutGroup must be called first.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
[작성 코드]
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
private void Start()
{
Debug.Log("안녕하셨습니까?")
}
}
답변 1
1
위에 있는
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
이 세줄은 지워주시고, 만약 작성하신 코드가 오타 없이 그대로 작성하신 거라면
Debug.Log("안녕하셨습니까?"); 와 같이 끝에 세미콜론(;)을 붙여주셔야 합니다.