• Hi Guest!

    We are extremely excited to announce the release of our first Beta1.1 and the first release of our Public AddonKit!
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. For access to the Public AddonKit you must be a Creator tier member. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
  • Hi Guest!

    VaM2 Resource Categories have now been added to the Hub! For information on posting VaM2 resources and details about VaM2 related changes to our Community Forums, please see our official announcement here.

Scripting Feature Request: Expose more of the MVRPluginManager interface

JayJayWon

Well-known member
Featured Contributor
Joined
May 11, 2020
Messages
708
Solutions
1
Reactions
2,002
Most of the methods and attributes of this class are currently protected which makes it difficult to add or remove plugins by script. Ideally we would have access to CreatePlugin, RemovePlugin, RemoveAllPlugins and the plugins List.

I suspect this may have been locked down on purpose, but various workarounds have already been identified by the community by using the LastRestoreFromJSON method (which is still public). The disadvantage of these workarounds is that it always forces all plugins to reload when you add or remove a single plugin (which can result in the other plugin losing their internal state).
 
Back
Top Bottom