Has method overriding been implemented yet? I can’t get on_begin_play or receive_begin_play to be called on startup.
Yes/no. The begin play calls are not wired up, you’ll need to create a manual call from blueprint’s BeginPlay and call a method in your . Note to self: this should just work.
As far as overrides go, yes, method overriding works as expected. In this case, the reason why it doesn’t just work for
receive_begin_play is more complicated, I think because it is a
BlueprintImplementableEvent and doesn’t go through the normal C++ Class/Super class call routing.
Is it possible that BP functions cannot be overridden? Every time I try, I get the following error message:
The following file cannot be edited because the overlay ‘Project-Generated-BP’ is specified as a read-only overlay:
Can you give an example of what you’re trying to do?
In the first picture you see a function in a Blueprint:
The next picture is of the editor with the error message:
As soon as I try to add brackets, I get the error.
Got it. Those entries are indeed read only. What you should do is create a blueprint callable function and call that from your blueprint node. Subclasses can override and C++ methods but not BP defined methods. So the general strategy is to call into from BP and then override the method in subclasses as needed.
So, if I understand correctly, the BP function is just a facade for the one.
Yep, that’s correct.