강의

멘토링

커뮤니티

Inflearn Community Q&A

ish050410149's profile image
ish050410149

asked

Learn Unity Basics with Dr. Koh by following along

tile map 두번째 강좌 스크립트는 작성하였으나 오브젝트에 컴포넌트가 들어가지 않습니다.

Resolved

Written on

·

877

0

ItemCollisionCheck 스크립트이며 Can’t add script component ‘ItemCollisionCheck’

Because the script class cannot be found. 
Make sure that there are no compile errors and that the file name and class name match.
라는 오류가 나타납니다.
스크립트명과 클래스명이 같은데 이러네요.
혹시 왜이런지 아시나요?

unity

Answer 3

0

unitynote님의 프로필 이미지
unitynote
Instructor

네 ㅎㅎ 유니티는 에러가 있으면 에디터의 다른 기능들도(컴포넌트를 적용하거나 컴포넌트 내부 변수를 설정) 작동하지 않아서 Console View에 빨간 느낌표가 뜨지 않는게 중요합니다^^

잘 해결하셨다니 다행입니다 ㅎㅎ

0

ish050410149님의 프로필 이미지
ish050410149
Questioner

파일중복이라서 오류가 났었습니다

0

ish050410149님의 프로필 이미지
ish050410149
Questioner

해결했습니다. 스크립트 문제는 아니고 2d extras 폴더가 에셋폴더에 중복으로 있어 그런거였네요

ish050410149's profile image
ish050410149

asked

Ask a question