There seems to be a bug here. InitBoxExtent() sets the extent of the box without triggering a render update. That seems to be the problem. Do this instead:
-
Use SetBoxExtent() instead of InitBoxExtent()
-
BoxCollider->SetupAttachment(RootComponent); instead of AttachToComponent to root.