But Child Actor Components is normal component like any other which work like a Actor slot in your Actor
You add it like any other component and set ChildActor.
's code looks like some kind of hack, i’m not sure if he is aware that you can simply place UChildActorComponent. But i think whats missing in code is:
Then set up variables that set up the component (in case of UChildActorComponent you set ChildActorClass which will spawn actor, or ChildActor if you got ready one). If you deal with SceneComponent you need to attach it to something, so you can copy code here:
for a simple component like a SM or a camera I know, but Here need to add component, using an Array containing the class of the subactor that I need to add
to be more clear, I have a Ship, that have an array containaing Engine, Weapon, Shield class, but I can’t know which class can be here and how many execept by the array’s size
so It’s on runtine that I want to do that, I would like to have it in the Ctor, for debug purpose