i looked at SceneComponent.h and noticed that AttachTo is a depreciated function, they recommend using AttachToComponent instead, so this could be a possible reason why it works in-game but not in editor.
if that doesn’t solve the problem, then post here and we can look further
I saw you had multiple questions about this, did they solve the problem in those other questions?