Declaring outside class inside another class

if you want the opportunity to use this class in the Editor - you can create UChildActorComponent in your class constructor. If you want only runtime generation - just spawn and use that reference farther.

for multiple headers - like in the normal cpp, but to preventing cyclic references use forward declaration in a header and just include in a cpp.

ps: necro, but for future generations)