pretty much the title.
I have a MonoBehaviour that I’ve been using a while now. It’s attached to many gameObjects in the scene. Recently I realized that it should be wrapped by a certain namespace. After doing so the components stop working and I couldn’t add the MonoBehaviour to any other gameObject.
It’s worth mentioning that I use the same namespace in other MonoBehaviours in the project with no issues.
The name of the script file and the MonoBehaviour is the same.
I’ve tried renaming/creating a new one from scratch.
Removing the namespace fixes the issue.
No compiler errors
I’m using 2017.3.b10 (tested also on 2017.3b8)
.NET 4.6 (Experimental)
Mono
This happened the same day I started using Assembly Definition Files (don’t know if it’s the cause but I think it could be related).
Thanks.