Script in Plugin folder can't see global static script

HI!

I have a singleton game manager script in Assets/Scripts that can’t be seen from another monodevelop-derived class in the plugin folder.

How can I get the plugin script to see the game manager?

Thanks

Manual reference: script compilation order.

If you have a script in the “Plugins” folder, it will be compiled before most of your other scripts. It will not be able to reference those other scripts (although they will be able to reference it).

You have two likely solutions:

  • Move your plugin script out of the “Plugins” folder
  • Move your other script into the “Plugins” folder

Either may have unintended consequences. The most likely reason to need something in the Plugins folder is if your project is written in multiple scripting languages. I avoid doing that whenever possible.