How to transform a child component

MyActor.h

captureComponent = NewObject<USceneCaptureComponent2D>(this, TEXT("SceneCapture2DScreen"));
captureComponent->RegisterComponent();

i add this child component to MyActor, then I want to rotate captureComponent ,but

myActor->captureComponent->SetRelativeLocationAndRotation(GI->location,GI->rotation);

this cant rotate captureComponent,its rotation is still all 0…so…how can i rotate that ?