I’ve a class like this;
class UMyclass : public UActorComponent ...
I’ll attach this component to an actor with collision enabled (i.e. the actor has a collision enabled component). The Actor class has a NotifyHit() functionality which is called whenever the collision component collides. This works.
The question is how do I notify my UMyClass component about this collision event?
I do not want to have a custom function which will be called inside NotifyHit(), and I don’t think this is a preferred way.