Description

The editor-only function in the native parent class is not compiled in the game module, which is why we're getting this error. The Blueprint compiler should follow suit during cooking and not generate anything that's editor-only.

Steps to Reproduce
  1. Create a new C++ project.
  2. Add a Blueprintable actor.
  3. Add a BlueprintCallable, BlueprintNativeEvent function that's surrounded in WITH_EDITOR.
  4. Build and run the editor.
  5. Create a Blueprint that derives from the new C++ actor.
  6. Implement the editor-only function.
  7. Place an instance of the Blueprint actor in the level.
  8. Cook and package the project for Windows. Ensure that pak files or IO store is enabled.
  9. Run the game.
  10. Observe there's an error in the log of the format "Could not find SuperStruct object".

Expected behavior: there should be no warnings and errors.

Alternative repro: download the attached project and cook/package it.

Have Comments or More Details?

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

0
Login to Vote

Unresolved
ComponentUE - Framework - Blueprint Compiler
Affects Versions5.6
Target Fix5.8
CreatedSep 26, 2025
UpdatedSep 29, 2025
View Jira Issue