Components with Sub-Components?

When I look at the Components area of my automatically generated Third Person Character, I see that there are some Components that appear to have Sub-Components:

Blueprint - Components.png

I have some Components that need to have a similar hierarchical structure to them, but when I make a Component a variable on another Component, the sub-Component needs to be instanced and will not show up in either a hierarchy like this, or even on the Details pane - it just shows a place to select an instance.

How would I go about making Components with sub-Components - or any other object, I really don’t care what kind of object it is, so long as I can build it with a hierarchical structure like this?

1 Like

I’m not quite sure of the problem you’re having. These are all just components, but the are connected or ‘parented’.

You can just drag the components around and parent them differently, or un-parent them. So they’re just normal components.

The main meaning of this connection is that if A is the parent of B, then B will move when you move A.

1 Like

No, you can’t just drag them around:

Blueprint - Inherited Component.png
https://forums.unrealengine.com/core/image/gif;base64

Blueprint - Inherited Component.png
https://forums.unrealengine.com/core/image/gif;base64
​​​

So maybe I have to make my Components Scene Components instead of Actor Components? Will they still be able to be childed to an Actor? It looks like Scene Components have a bunch of other unnecessary functionality, when all I want to do is to be able to have Components as children of other Components.

'm going to investigate this, but in the meantime, if there is a better way to have Components as children of other Components, I would really like to hear about it.

1 Like

Ah, my bad, obviously you can’t noodle around with things that have been inherited. That’s fixed.

But components you put in there yourself, you can move them around as much as your want.

Have to be careful with the terminology here, because a child component is a specific thing. I think we’re talking about ‘attachment’ here.

So, A is attached to B:

585edb2a750fdb554d8cedd9527a47ce3bae0a8d.jpeg

where a child actor ( component ), is this:

f1028e88eb55eefe3a1a32b0401df91c44572291.jpeg

1 Like

My second image, regarding the inherited components, was only added for the sake of completeness. The first image is what I get when I try to drag one of my own Components around. What types of Components are in your images? Are they Scene Components, and I’m just going to suck it up and accept the unnecessary location overhead for Scene Components in order to attach them? Will this allow my Blueprints to see them as Parents in order to communicate between them?

I think we might be having a terminology problem here.

A scene component, you can add at any time:

and you can move it anywhere you want.

Is that the kind of component you mean?

1 Like

Looks like it was my mistake. I specified Actor Component in the other question I linked in my original question, but it seems I forgot to specify that in this question.

2 Likes