CS0246 cannot get a component from another script

I cannot reference a script of my own in the AIPath script, however I can reference any Pathfinder script in my own scripts.

The error type is CS0246

The type or namespace name could not be found (are you missing a using directive or an assembly reference?)*

Does it compile in Unity? Or is this only in your IDE?

It compiles in Unity, but they are not part of the same project.

In that case it looks like your IDE project is not set up correctly. Unity can re-generate project files.
But this is not something I can help you that much with, I’m afraid.

Thanks anyways, i’ll try organizing everything.