Delegates from two classes with the same parent

Hi! I am having difficulty using a delegate.

There are two classes with a common parent.

Delegate variables are declared in their parents.

One child (Class A) is binding with AddUObject.

Another Child (Class B) call the Broadcast.

At this time, can Class A listen to Class B’s broadcast?

Thank you :smiling_face_with_tear:

1 Like

Hi, yes Class A can listen to Class B broadcast. But it needs to bind to Class B’s delegate not to it’s own. So in Class A you need to do something like:
ClassBReference->YourDelegate->AddUObject()

Thanks for helping me!

I had a wrong understanding of delegates… :sob:

Thank you so much!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.