Player start not quite in the same place

I’m struggling to put player pawn on my sandbox but it just doesn’t work as it used to.

When I press play, BP_Vehicle_2 is located where player start is but its mesh is on the left and in front.

I just can’t find anything that would make this shift.

BP_Vehicle_2 derives from c++ but both functions (tick and begin play) are empty.
There is only very short constructor:

PrimaryActorTick.bCanEverTick = true;
BoxComp = CreateDefaultSubobject(TEXT(“Box Collider”));
RootComponent = BoxComp;

BaseMesh = CreateDefaultSubobject(TEXT(“Base Mesh”));
BaseMesh->SetupAttachment(BoxComp);

One more thing. Only BP_Vehicle_2 has InputComponent.

Is the block located a 0,0,0 in the BP?

Thank you, that’s solves the problem.

I used “UPROPERTY(VisibleAnywhere)” in the header file and give me only scale option in BP.
When I changed to “UPROPERTY(EditAnywhere)”, that give me access to location and rotation.

it is strange a bit, because about half year ago "VisibleAnywhere " was on some course and it worked just in UE4.

Problem solved.

1 Like