Announcement

Collapse
No announcement yet.

Getting the BP name a node is being used in.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Getting the BP name a node is being used in.

    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?

    #2
    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.
    | Savior | USQLite | FSM | Object Pool | Sound Occlusion | Property Transfer | Magic Nodes | MORE |

    Comment


      #3
      Originally posted by BrUnO XaVIeR View Post
      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

      Comment

      Working...
      X