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
Bài viết liên quan
[Case Study] - StatcWeb.Studio dùng nocode để làm tool nocode: 200h - 0 sales - 5 min(s) read - published on January 24, 2021[Case Study] Bán No-code MVP làm trong 100h giá $5000 - 11 min(s) read - published on January 15, 2021Chi tiết mình validate idea với nocode - 3 tuần 60 sales - $567 - 7 min(s) read - published on December 15, 2020Do things that don't scale - Lời khuyên tốt nhất để validate idea làm app - 2 min(s) read - published on November 22, 2020GPT-3 sẽ là phát minh quan trọng kể từ Blockchain - 4 min(s) read - published on September 15, 2020#6 - NoCode MVP - Tổng kết - 5 min(s) read - published on August 22, 2020#5 - NoCode MVP - Buông bỏ để hạnh phúc - 2 min(s) read - published on July 28, 2020#4 - NoCode MVP - Ý tưởng. Một lần chơi lớn - 4 min(s) read - published on July 2, 2020#3 - NoCode MVP - Sức mạnh của Bubble.io - 5 min(s) read - published on June 29, 2020#2 - NoCode MVP - Tại sao là NoCode và tương lai của nó - 7 min(s) read - published on June 28, 2020