Autocomplete doesn't work for plugin object and its descendants

Writing plugins was always a pain, since autocomplete for plugin library never been working, this is true aswell for PluginToolbar, PluginMenu and etc.
As I understand, all of its methods have Plugin Security, preventing it from appearing in autocomplete. I was thinking that using flags like --!nocheck or --!nonstrict can help, but they didn’t.

P. S.
I couldn’t find posts about it here, or any solutions, so if there is a fix for that, let me know.

1 Like

Thanks for the report! We’ll follow up when we have an update for you!

Plugin security instances, methods, etc. are hidden in Script Editor by default to ensure they aren’t accidentally used in game scripts. They are accessible if the script’s RunContext is set to plugin, or the script is a descendant of the PluginDebugService, or you enable this setting - then you should be able to see autocompletions for these types.

I second that, we just released this that should address the issue…

…and indeed, in the PluginDebugService, after setting the my plugin script RunContext to Plugin:
plugin_autocomplete

Hope this helps…

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.