Add component to actor in C++ (the final word!)

Though AActor::AddComponentByClass() is tempting to use, you should note that epic says specifically not to call this function directly:

2 Likes