I have been working on an editor module for a while now. I made some large changes to how the EditorMode and Toolkit sets up the UI Commands and the Slate UI today. At some point the Unload / Reload buttons disappeared from the Module window in the editor. I have noticed that additionally when I press Recompile it no longer disables the additional Mode tab as it used to do.
Is there a specific reason for this? Did something that I changed influece the type of module that I have? I have an additional module that only contains runtime classes. This has never had those buttons, but I can understand why.
I ran into this in UE 4.15 too. Turns out having a class that inherits from UFactory in your module/plugin will remove the option to reload that plugin via the module window.
I was able to work around this by creating a separate module (ie, MyGameFactories) and putting my UFactory classes there. You still can’t reload the factory plugin, but your editor module will regain the ability to reload.
And If follow the code in the same file, finally I can meet the function GetVisibilityBasedOnLoadedAndShutdownableState() through GetVisibilityBasedOnReloadableState()