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
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:
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.