I have a generic BP_Pickup blueprint. I have a lot of functionality I would like to inherit into sub classes - e.g. BP_Pistol or BP_Ammo. But pistol has a skeletal mesh and Ammo has a static mesh. My current solution is that there is both in the BP_Pickup, and I use a bool to decide which to hide/show or interact with during run time. It is also possible that selected instances have both, and I switch from skeletal to static to save performance when animations on a mesh are no longer necessary, for example switching a static mesh of a complicated weapon to static when it is disabled and lying on the floor.
Other than the hundreds of warnings about one of the static or skeletal meshes have no mesh allocated, I’m sure this is not the most performant method. I was thinking of just using a MeshComponent which appears to be a parent to both, and then casting to either static or skeletal during runtime - I’m just not sure this is the right way, or will work as expected.
If anyone has solved this - pls let me know.