I inherited character class and changed it’s root component. But when I spawn and move around, the root component is keeping spawn location and not moving with character.
Root = OI.CreateDefaultSubobject(this, TEXT(“Root”));
SetRootComponent(Root);
GetCapsuleComponent()->SetupAttachment(Root);