NIVIKI.COM

Share this post

Sửa lỗi can not add script trong Unity

niviki.com

Discover more from NIVIKI.COM

Lan toả tinh thần tự do tài chính đến với nhiều người hơn nữa!
Over 1,000 subscribers
Continue reading
Sign in

Sửa lỗi can not add script trong Unity

Khoa Nguyen
Jan 2, 2016
Share this post

Sửa lỗi can not add script trong Unity

niviki.com
Share

Khi bạn gặp lỗi Can't add script ..... because the script class cannot be found:

Hoặc khi script đã được thêm vào GameObject nhưng vẫn xuất hiện lỗi:

Rất có thể nguyên nhân là do bạn đã đổi tên script nhưng bạn quên đổi tên class của nó:
Ví dụ mình có tạo script là SimpleMovement, sau đó đổi thành Movement và xuất hiện lỗi này, để sửa lỗi chỉ cần sửa tên class lại cho đúng với tên của script là được:

Sửa lỗi can't add script unity3D

Share this post

Sửa lỗi can not add script trong Unity

niviki.com
Share
Comments
Top
New
Community

No posts

Ready for more?

© 2023 Khoa Nguyen
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing