How to set transform type to world

In blueprints, you can set a component to ignore its parent location/rotation/scale by clicking the dropdown arrow by location/rotation/scale and selecting “world” in the details panel. How would I go about doing this in C++? I would like to set this in the constructor, because I don’t want to set each individual component I need manually.

The closest I’ve seen is USceneComponent::SetAbsolute(), however this doesn’t work for me when using it in the constructor.

SetUsingAbsoluteLocation(true);
Sphere->SetUsingAbsoluteRotation(true);
Sphere->SetUsingAbsoluteScale(true);

image