How to broadcast a delegate from a editor plugin and trigger the event in level blueprint?

What I’m trying to do is to create a button in the toolbar of level designer, click it will trigger an event in level blueprint.

The key problem here is how to declare a delegate in the plugin which could be accessible to level blueprint. And this should work in Editor mode rather than Running mode.

I think I should subclass from something like “LevelEditorClass”, declare the delegate and expose it to level blueprint.

Any suggestion?

This sounds like a very odd way to go about something…

What exactly is the end goal? If you want a button in the toolbar of the level designer, then you have to create an editor module and extend the toolbar. It’s possible to do this without using source code thankfully, as the editor is very modular. I recommend checking out this stream: https://docs.unrealengine.com/latest/INT/Videos/PLZlv_N0_O1ga0aV9jVqJgog0VWz1cLL5f/zg_VstBxDi8/

I assume you want to create some kind of editor tool rather than something that works at runtime?