How can I fill an array of my child actor components in the editor?

Basically I want to make an actor who has other actors. My problem is that I want to do some functionalities with certain child actors. I have a variable inside my blueprint that is an array of child actor component but when I hit insert and choose I don’t get anything to choose from. I need a way to save in an array these child actor components that are in my blueprint and to be able to visualize them in a variable to be able to make functionalities with these actors. I would like to achieve something like the structure in the picture but instead of an actor, a child actor component.

Thank you very much in advance
Capture
Capture2

Actor components are childs of the actor BP, but if you want to pick actors in the scene and store in an array of another actor BP those are actually ACTORS and not Child Actors.

image

Perfect, I understand. Is there any way to store these actors in the blueprint itself to be able to set values? I know I have to do something with ConstructionScript but I can’t get it to work.

you can get all actors of class and store in the array variable in the case those actors are all of the same class. If not you can use Actor TAGS and get all actors with tag instead.

In short you need some common feature to get all the actors you want to grab and fill in the array.

Why you want to get all of them in an array?

I want to create a super actor that is composed of child actors. Then I want to have an array of structs where in each struct there will be the child actor, an integer and a float so I can manage everything from the editor and set the values before the game starts.

Ok…only you know why you want to handle actors like that.
It’s hard to help to meet your goal. Help can be only for specific
problem (get actors and put in an array).

Oh sorry I thought I said it in the first comment, basically I want to create a super object with child actors. When a child actor is hit I want to attach it to the child actors that it has above and create another actor with these child actors affected. So in order to make this, I need an array of the child actors of the blueprint so I can start to make this stuff with them.

Oh I think I am going to do a class inherited from Child Actor Component in C++ so I can manage everything from the viewport.

Well, I cannot add my custom child actor component, I dont know why. Sad