Hello, I’ve updated to 4.15.1 hotfix and started a new project and I encountered several errors in C++.
First one:
//This is called inside Pawn constructor
PawnMesh = ObjectInitializer.CreateDefaultSubobject<UStaticMeshComponent>(this, TEXT("PawnMesh"));
PawnMesh->AttachToComponent(RootComponent, FAttachmentTransformRules::KeepWorldTransform);
PawnMesh->SetWorldLocation(FVector(0.f, 0.f, 70.0f)); // <--- this line gives me "UE4Editor.exe has triggered a breakpoint."
Second one:
//Overriden function inside PlayerController
void ALPlayerController::SetupInputComponent()
{
//Gameplay axis bindings
InputComponent->BindAxis("MoveForward", this, &ALPlayerController::MoveX); // <---- causes exception "Exception thrown: read access violation. this was nullptr."
InputComponent->BindAxis("MoveRight", this, &ALPlayerController::MoveY);
}
MoveX and MoveY are just normal void UFUNCTIONs.
Not sure why it’s causing that. Also MoveForward & MoveRight are set in the Input config in the editor.