BlueprintNativeEvent has "read-only" context in Blueprint overrides? (cannot call non-const functions)

Hi there,

I derived a C++ class Unreal introduced in the fairly new Scriptable Editor tools plugin:

UEditorScriptableModularBehaviorTool

When I now add a BlueprintNativeEvent where I want C++ and Blueprint to interact I get an error that the Blueprint logic in this context is read-only.

Example compile error:

Function GetActiveModifiers can modify state and cannot be called on ‘self’ because it is a read-only Target in this context

Q: Does that sound familiar, maybe a case where in C++ or the function override in BP I have to enable write access or enable calling non-const functions on “self”?

Solved: I learned, when the wording “read-only” is used here it may simply mean:

The exposed C++ event has the const modifier on the definition / declaration.

I missed that for one event when the parameter list was long (const on the next line). :stuck_out_tongue: