PluginDebugService deleting all instances except for the script when saved & reloaded

I’m making a plugin for welding parts in a model to its primary part, and I’m using a DockWidgetPluginGui for the plugin with the GUI stored in a folder with the plugin script.

image

The issue is that whenever I press “Save and Reload Plugin”, the UI just disappears, with only the script remaining:
Image from Gyazo
I have tried putting the frame in different places in the plugin to no avail.
I’ve looked for solutions on the internet but nothing comes up.

This is my first time making a plugin so I might just be making a stupid mistake, but I genuinely have no clue why it’s doing this.

1 Like

Did you find the solution, i have the same problem

1 Like

nope, no solution yet. maybe its hard coded into studio?

1 Like

This is still present, and is still just as annoying. The whole plugin debugging workflow seems really glitchy and not in a state that should have ever been released.

It appears to delete all new instances that weren’t there when the plugin was first saved, and saving over the top of an existing plugin, then reloading, does the same thing.

Reported here: PluginDebugService deletes new instances when saving