When I load a project in the DAW, the PluginEditor will be created immediately, then exists somewhere in the void and pops up (superfast I admit), when being opened. Usually I expect the editor to be created the moment I open it, not before.
This seems to be happening only in VST3. The JUCE pluginhost doesn’t do it, but Bitwig and Ableton seem to do it.
Is this the expected behaviour? If so is there any function called when the editor is actually openened where I can inject some code?
My problem ist that I need the order of things to be:
1. Plugin instantiation
2. Load params via setStateInformation()
3. Create Editor (this forces values from ValueTree to GUI components)
Currently 2. and 3. are switched!
I can think of ways to circumvent it now that I now it, but was curious why this is done.