continuing to try to fix
This commit is contained in:
@@ -34,6 +34,7 @@ ADDICharacter::ADDICharacter()
|
||||
|
||||
FirstPersonCamera = CreateDefaultSubobject<UCameraComponent>(TEXT("First Person Camera"));
|
||||
// FirstPersonCamera->SetupAttachment(FirstPersonMesh, FName("head"));
|
||||
FirstPersonCamera->SetupAttachment(GetMesh());
|
||||
FirstPersonCamera->SetRelativeLocationAndRotation(FVector(-2.8f, 5.89f, 0.0f), FRotator(0.0f, 90.0f, -90.0f));
|
||||
FirstPersonCamera->bUsePawnControlRotation = true;
|
||||
FirstPersonCamera->bEnableFirstPersonFieldOfView = true;
|
||||
@@ -59,6 +60,9 @@ void ADDICharacter::BeginPlay()
|
||||
{
|
||||
Super::BeginPlay();
|
||||
|
||||
GEngine->AddOnScreenDebugMessage(-1, 5, FColor::Red, GetController()->GetName());
|
||||
|
||||
|
||||
// SetupPlayerInputComponent( InputComponent);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user