Here is my setup in my actor’s constructor. The details are unimportant, but the variable names should be informative enough.
BackgroundVideoSurface = PCIP.CreateDefaultSubobject<UChildActorComponent>(this, TEXT("BackgroundVideoSurface"));
BackgroundVideoSurface->AttachParent = FirstPersonCameraComponent;
BackgroundVideoSurface->ChildActorClass = (UClass *)VideoSurfaceBlueprint.Object->GeneratedClass;
But when I try to access ->ChildActor later, (In #BeginPlay), it’s always NULL.
AVideoDisplaySurface* BackgroundVideoDisplaySurface = (AVideoDisplaySurface*)BackgroundVideoSurface->ChildActor;
What am I missing?