Hi, for logging purposes, I would like to get the name of the object that is executing my BP Node code. That is I have a BP node created in C++, when it is used in a BP graph I would like to be able to reference that object at runtime in the C++ code. Some nodes have a Target pin that defaults to self, so I assume this is what I need to add to my c++ code. How is this done?
Use WorldContext=“parameter” metadata.
The context object will be set to the UObject* param you use, the value will be the BP executing the node.
You can search examples in engine source.
thanks dude