Developer Notes

This is being caused by the plugin's type. The plugin used to reproduce this is currently a Developer plugin, which means it can also run at runtime.

If the plugin is changed to be an Editor plugin, it will be able to compile.

Description

Error when using "For Each Selected Actor" in a blutility that was derived from Global Editor Utility Base in C++

Error Message: "LogBlueprint: Error: Cannot use the editor function "ForEachSelectedActor" in this runtime Blueprint. Only for use in Editor Utility Blueprints and Blutilities."

Steps to Reproduce
  1. Download the attached project
  2. Open the project
  3. Right click "Mort" blutility
  4. Edit Blueprint
  5. Compile (do not click save)

Result: The editor throws an error stating the the current blueprint is a runtime blueprint (see full error in the description)
Expected: The blutility would compile without error

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-73159 in the post.

5
Login to Vote

By Design
ComponentTools
Affects Versions4.224.23
CreatedApr 22, 2019
ResolvedApr 22, 2019
UpdatedFeb 7, 2020
View Jira Issue