I did everything as the video showed but my platform is not moving, in the code below I tried moving PrimaryActorTick.bCanEverTick = true into BeginPlay and it also doesn’t move.
AMovingPlatform::AMovingPlatform()
{
SetMobility(EComponentMobility::Movable);
}
void AMovingPlatform::BeginPlay()
{
PrimaryActorTick.bCanEverTick = true;
}
void AMovingPlatform::Tick(float DeltaSeconds)
{
Super::Tick(DeltaSeconds);
FVector Location = GetActorLocation();
Location += FVector(15 * DeltaSeconds, 0, 0);
SetActorLocation(Location);
}