This is my first question so I hope I am asking it ok...
I am developing a construct3 plugin.
I need to be able to run a function that is defined in the instance or an action that is defined in acts through script.
Whenever I try to access my class using self.C3.Plugins.MyClassName I get an error that this is not defined...
Any help would be appreciated.
Ashley do you have any ideas?
Develop games in your browser. Powerful, performant & highly capable.
Solved- In constructor of plugin instance I added globalThis.myPluginInstance=this;
which made my plugin instance and its functions available globally through myPluginInstance or globalThis.myPluginInstance