How to solve CAN'T ADD SCRIPT error in Unity - Causes and possible solutions

Опубликовано: 30 Сентябрь 2024
на канале: GDT Solutions
11,421
114

In this video we talk about how to solve the "Can't Add Script" error in Unity in which it is not possible to add a Script or component to a GameObject. This error occurs when the name of the Script and the name of the class that is defined inside it do not match. It also happens when we create a Script when we have errors in console, in this case Unity can not compile and consequently the Script created can not be added to the engine, for this reason it is as if that Script still does not exist, only when the errors are solved in console Unity will compile and add the Script.

The following article shows the step by step to solve the error "Can't Add Script" in Unity in the two cases shown:
https://gamedevtraum.com/en/game-and-...

____________________________________________________________
LINKS

Portfolio: https://gamedevtraum.com/en/portfolio...

LinkedIn:   / gamedevtraum  

Downloads: https://gamedevtraum.itch.io/

Contact:   / gamedevtraum  
____________________________________________________________