Error

Hello Unity,
I’m really new to programming, i downloaded an asset (garage), now i’m trying to get a player in there and code it’s moving, manipulating, etc. When i create a capsule (player), then create a new C# script, i get an error “The referenced script (Unknown) on this Behaviour is missing!”

This one is going to be difficult to fix. It means that the link between the prefab/scene and that script that’s supposed to be attached to the object has been broken, and Unity doesn’t really give you any tools to reattach it once this happens, you more or less just have to reattach them manually.

I’d try importing the asset into a new, blank project, and see if it works correctly. If it does, you can use that working blank as a “template” to fix the asset in your actual project.

If it doesn’t work, it’s a problem with the asset itself, and you should contact the asset creator for help.

2 Likes