Let’s say I have a component and a set functions and variables that fulfill a specific task.
I would like to be able to pack them all into a single component so that I can attach them easily to any blueprint (I want that package to be self-contained so that there is no need to add anything else to make it work).
I can do it with functions and variables without a problem, but I can’t have a component inside a component.
I also can’t spawn a component from inside of another one.
I thought the solution would be to create a custom component that is a child of an already existing component - but this can only be done in some situations. I can for example create a custom component that is a child of an instanced static mesh, but not one that is a child of a normal static mesh.
So here is my question:
Can I create a component that will have all the functionality of an already existing component + anything else that i want to add (or simply create a child of an already existing component)?
I need to do that with a custom mesh component.
Thanks for help.