How do I create a delegate in an actor component so that it is called on all actors on the stage at once?

I have a component that outputs text every second. If I put two factors with this component, the text is output on only one. When I created it through the Blueprints dispatchers, everything was fine, but it didn’t work out in c++. I used: DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam

Here is a working example I made. (40.0 KB)

1 Like