#unreal

You can add buttons to call logic from editor by making a function Call in Editor.

This can be done for both blueprint and C++ functions:

  • For C++, mark the function UFUNCTION(CallInEditor). In some cases you may also want to wrap it with #if WITH_EDITOR if it runs logic that should only exist in editor.
  • For blueprints, the event/function details panel has a checkbox for Call In Editor