continuing to try to fix
This commit is contained in:
@@ -82,3 +82,6 @@ DefaultTouchInterface=/Engine/MobileResources/HUD/DefaultVirtualJoysticks.Defaul
|
|||||||
-ConsoleKeys=Tilde
|
-ConsoleKeys=Tilde
|
||||||
+ConsoleKeys=Tilde
|
+ConsoleKeys=Tilde
|
||||||
|
|
||||||
|
[/Script/EnhancedInput.EnhancedInputDeveloperSettings]
|
||||||
|
bEnableUserSettings=True
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -34,6 +34,7 @@ ADDICharacter::ADDICharacter()
|
|||||||
|
|
||||||
FirstPersonCamera = CreateDefaultSubobject<UCameraComponent>(TEXT("First Person Camera"));
|
FirstPersonCamera = CreateDefaultSubobject<UCameraComponent>(TEXT("First Person Camera"));
|
||||||
// FirstPersonCamera->SetupAttachment(FirstPersonMesh, FName("head"));
|
// 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->SetRelativeLocationAndRotation(FVector(-2.8f, 5.89f, 0.0f), FRotator(0.0f, 90.0f, -90.0f));
|
||||||
FirstPersonCamera->bUsePawnControlRotation = true;
|
FirstPersonCamera->bUsePawnControlRotation = true;
|
||||||
FirstPersonCamera->bEnableFirstPersonFieldOfView = true;
|
FirstPersonCamera->bEnableFirstPersonFieldOfView = true;
|
||||||
@@ -59,6 +60,9 @@ void ADDICharacter::BeginPlay()
|
|||||||
{
|
{
|
||||||
Super::BeginPlay();
|
Super::BeginPlay();
|
||||||
|
|
||||||
|
GEngine->AddOnScreenDebugMessage(-1, 5, FColor::Red, GetController()->GetName());
|
||||||
|
|
||||||
|
|
||||||
// SetupPlayerInputComponent( InputComponent);
|
// SetupPlayerInputComponent( InputComponent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ public:
|
|||||||
virtual ~ADDICharacter();
|
virtual ~ADDICharacter();
|
||||||
virtual float TakeDamage(float DamageAmount, struct FDamageEvent const& DamageEvent, class AController* EventInstigator, AActor* DamageCauser) override;
|
virtual float TakeDamage(float DamageAmount, struct FDamageEvent const& DamageEvent, class AController* EventInstigator, AActor* DamageCauser) override;
|
||||||
|
|
||||||
USkeletalMeshComponent* GetFirstPersonMesh() const { return FirstPersonMesh; };
|
// USkeletalMeshComponent* GetFirstPersonMesh() const { return FirstPersonMesh; };
|
||||||
|
|
||||||
UCameraComponent* GetFirstPersonCameraComponent() const {return FirstPersonCamera; };
|
UCameraComponent* GetFirstPersonCameraComponent() const {return FirstPersonCamera; };
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ void ADDIPlayerController::SetupInputComponent()
|
|||||||
{
|
{
|
||||||
for (UInputMappingContext* CurrentContext : DefaultMappingContexts)
|
for (UInputMappingContext* CurrentContext : DefaultMappingContexts)
|
||||||
{
|
{
|
||||||
|
GEngine->AddOnScreenDebugMessage(-1, 5, FColor::Cyan, "Controller Setup Character");
|
||||||
Subsystem->AddMappingContext(CurrentContext, 0);
|
Subsystem->AddMappingContext(CurrentContext, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -30,7 +31,7 @@ void ADDIPlayerController::SetupInputComponent()
|
|||||||
void ADDIPlayerController::BeginPlay()
|
void ADDIPlayerController::BeginPlay()
|
||||||
{
|
{
|
||||||
Super::BeginPlay();
|
Super::BeginPlay();
|
||||||
|
GEngine->AddOnScreenDebugMessage(-1, 5, FColor::Green, this->GetName());
|
||||||
// WeaponUI = CreateWidget<UDDIWeaponUI>(this, WeaponUIClass);
|
// WeaponUI = CreateWidget<UDDIWeaponUI>(this, WeaponUIClass);
|
||||||
// WeaponUI->AddToPlayerScreen(0);
|
// WeaponUI->AddToPlayerScreen(0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user