Run function after clicking the button in the plugin. PROBLEM

The default Slate attribute syntax (such .OnClicked) expects a shared pointer. You need to either:

  1. Use OnClicked_Raw instead; or
  2. Derive your class from TSharedFromThis, which allows implicit conversion to a shared pointer, e.g.

class FModularBuildModule : public IModuleInterface, public TSharedFromThis< FModularBuildModule >