So let me get this straight.
1.UStaticMeshComponenet inherits a variable called on Component Hit from its parent UPrimitiveComponent.
2.On Component Hit can generate a hit event which is also called Muticast Delegate.
3.There is a list called invocation list which stores all the functions that respond to multicast delegate’s broadcast, and this broadcast only happens when there is a hit event.
4.In order to add a function the list, I can simply type OnComponentHit.AddDynamic( this, The function that I want to add)
- When declaring this function in header file , it needs to have specific signature in its parameters.
Questions:
-
Is there anything incorret in my understanding?
-
What’s the reason for the function have specific signature? Is it because that’s only way for hit event to recognize it and add it to the list? What is a signature?(Can’t find a proper article about it)