As an example I’m trying to loop through the 3 children static meshes of my blueprint and return each ones name.
But the Get Children Components returned array seems to have 4 entries instead of 3. The 3 Cubes are present as seen in the print readout but there is a “BillboardComponent” that is being added some how.
Any thoughts about this? am I going about this in the wrong way?
It’s most certainly the icon used to display your blueprint in the editor. That white circle/sphere if you’re using an actor. If you call the same code at runtime, you shouldn’t notice that billboard component.
You should be able to remove the default scene root and have the first cube be the base by dragging the first cube over top of the default component and choosing from the drop down. That should remove the extra component (though im not at my desk to double check).
What I’ve found to be the answer is to NOT use the “DefautSceneRoot”. Instead create a new Scene Component and place the children into there. Now when calling the Get Children Components function in either editor or play mode I receive the correct array list.