How do you choose a C++ Parent Class

Im at the point where I am making a TankBarrel C++ class and Ben chose for it to be a StaticMeshComponent. Now I see why he would do that after he brought it up and explained but to be 100% honest I dont think I have a really good grasp on how to choose. Because Judging by the description of the first few choices my first guess waould have been to make the Tank Barrel an Actor Component. Especially if I didnt know UstaticComponent existed or forgot.

I know this is a very circumstantial question but Is there a way to know for certain what component you should pick to work? Some kind of reference? If I know the thought process behind how I should go about choosing I feel like that would help the most.

Privacy & Terms