How to register child actor compoent in blueprint

The comment of child actor compoent says it is “a component that spawns an actor when registered,and destroys it when unregistered”.I added a child actor component variable but can’t find any register function in blueprint.Is it because the compoent is always registered in blueprint class?

There is another question.What’s the difference between child actor compoent and spawn an actor?

I never looked at the tool tip … but it seems to mean “registered” in the same way as the [Is Valid?] function.

The difference between Child and Spawn Actor by Class is easy to test.

.

Create an actor class that is simply a cube. (2 copies)
Create a second actor class that is the same but 1/2 the scale.

Have one of the first cube-actors create the second on top of themselves as a Child actor.
Have the other of the first cube-actors do the same using Spawn Actor by Class.

Then have the larger cube actors call their [DestroyActor]

.

Child actors are “parented” to the calling class. You can opt to have them inherit (or not) certain things, such as alterations to Transforms of the caller, but the fact that they are removed from the scene (and memory) when the parent class is, is the vital aspect.