Compare commits

..

No commits in common. "1b515981f53f5ede97879e5a83d46ed441db59b3" and "cf352582542056a88d800f83633b091658a5f17d" have entirely different histories.

19 changed files with 22 additions and 43 deletions

Binary file not shown.

Binary file not shown.

View File

@ -44,10 +44,6 @@ public:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
int32 InventoryWeightLimit;
/** MappingContext */
UPROPERTY(EditAnywhere, Category = Input, meta = (AllowPrivateAccess = "true"))
class UInputMappingContext* InputMapping;
/** Toggle inventory GUI Input Action */
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Input, meta = (AllowPrivateAccess = "true"))
class UInputAction* ToggleInventoryAction;

View File

@ -50,11 +50,9 @@ void Ahwanyoung2Character::BeginPlay()
{
if (UEnhancedInputLocalPlayerSubsystem* Subsystem = ULocalPlayer::GetSubsystem<UEnhancedInputLocalPlayerSubsystem>(PlayerController->GetLocalPlayer()))
{
Subsystem->AddMappingContext(InputMapping, 0);
Subsystem->AddMappingContext(DefaultMappingContext, 0);
}
}
}
void Ahwanyoung2Character::CheckForInteractables()

View File

@ -4,7 +4,7 @@
#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "InputAction.h"
#include "InputActionValue.h"
#include "hwanyoung2.h"
#include "hwanyoung2Character.generated.h"
@ -28,8 +28,8 @@ class Ahwanyoung2Character : public ACharacter
#pragma region Character Gameplay Input Action
/** MappingContext */
UPROPERTY(EditAnywhere, Category = Input, meta = (AllowPrivateAccess = "true"))
class UInputMappingContext* InputMapping;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Input, meta = (AllowPrivateAccess = "true"))
class UInputMappingContext* DefaultMappingContext;
/** Jump Input Action */
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Input, meta = (AllowPrivateAccess = "true"))