• 카테고리

    질문 & 답변
  • 세부 분야

    게임 프로그래밍

  • 해결 여부

    미해결

UnassignedReferenceException에 대해 문의드립니다.

21.09.21 16:25 작성 조회수 8.53k

0

UnassignedReferenceException: The variable _player of CameraController has not been assigned.

You probably need to assign the _player variable of the CameraController script in the inspector.

CameraController.LateUpdate () (at Assets/Scripts/Controllers/CameraController.cs:29)

 

위 오류가 뜨면서 실행하면 카메라가 플레이어를 따라가지 않습니다. 올린 파일을 그대로 사용해도 여전히 오류가 생기네요.

유니티와 비주얼 스튜디오 버전은 최신버전입니다.

답변 2

·

답변을 작성해보세요.

3

에러 메시지를 보니 말 그대로 _player가 없어서 그런 것 같은데,
11:42 부분에서 연결하는 부분을 확인 바랍니다.

0

감사합니다. 너무 어려워요 ㅠㅠ