강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

roundsouthern님의 프로필 이미지
roundsouthern

작성한 질문수

[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진

Camera #1

UnassignedReferenceException에 대해 문의드립니다.

작성

·

9.8K

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

Rookiss님의 프로필 이미지
Rookiss
지식공유자

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

0

roundsouthern님의 프로필 이미지
roundsouthern
질문자

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

roundsouthern님의 프로필 이미지
roundsouthern

작성한 질문수

질문하기