How would you write code that can handle a generic object type? Would you use a template?
I’m trying to figure out how I’d have a class that can have a member that might be a UStaticMesh, a UStaticMeshComponent, a ULightComponent, etc. I’m guessing the answer is to use a template somehow, but I’m not sure exactly how to structure it. I also wonder if UE has a way of handling this.
Sorry if that’s rambling, I’m still getting my head around this.