In 4.8, I had a static mesh as a component on the player character via:
SM_MyMesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("MyMesh"));
It attached and moved with the player correctly. However, upgrading to 4.9, the static mesh no longer moves and just stays at the player start location. I’ve tried:
SM_MyMesh ->SetMobility(EComponentMobility::Movable);
SM_MyMesh ->bAutoActivate = true;
SM_MyMesh ->PrimaryComponentTick.bCanEverTick = true;
under the guess that the new tick functionality broke things? What is the correct way to attach a static mesh component to the player in 4.9 such that is moves with the player? Am I missing something. Attaching via blueprint works fine, but I want to have the component accessible via code.