Unity Cant add script error Fix

preview_player
Показать описание
"𝐂𝐚𝐧'𝐭 𝐚𝐝𝐝 𝐬𝐜𝐫𝐢𝐩𝐭.." error message 🚩usually is a result of Unity / VS failing to recompile your script 😑

Just create a New Script to force recompilation process 😮‍💨🙂

#unitytips #unity2d #unity3d #gamedev #gamedevelopment #shorts
Рекомендации по теме
Комментарии
Автор

Update: you can also press Ctrl+R in Unity instead of Creating a new script!

SunnyValleyStudio
Автор

I was sceptical at first but this actually worked. The recompilation with adding a new script actually worked! Thank you so much!

XtrminatR
Автор

Thanks man, i was watching a tutorial on Unity 2d movement and i stumbled upon this error, but your tutorial helped me fix it, thanks

canalgenerico
Автор

Also you can just save any open script and it will recompile.

DestinFritz
Автор

Thanks a ton, I had a spacing error in the script name

diamondrhino
Автор

It says "No MonoBehavior scripts in the file" Also when i looked at the mono behavior it had no color

AGUYlDK
Автор

Right button mouse to script => reimport

Dianom
Автор

my unity never lets me put scripts
its not working what ever I do

Rapid_snowy