TemporarilyBroken TempCharacter.cpp

Attempted to fix the close button currently it crashes.
This commit is contained in:
MARCEL HARA 2023-01-26 18:12:24 +00:00
parent 6faa177f96
commit 810b4b1680
5 changed files with 13 additions and 7 deletions

Binary file not shown.

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:42aa0e6d25904de056d4d64509aa7c804155c5b3a212ada658ca10dcb63f3e32
size 55403
oid sha256:1e9ac1ff7478dfef5edd2254f1241a9b10b7b79d228f1c7fa962c0579a7b2183
size 53418

Binary file not shown.

View File

@ -161,7 +161,7 @@ void ATempCharacter::InputEnabler()
ThisCamera->SetWorldLocation(OriginalCameraLocation);
ThisCamera->SetWorldRotation(OriginalCameraRotation);
ThisCamera->FieldOfView = OriginalCameraFOV;
ItemSelectorWidget->SetVisibility(ESlateVisibility::Hidden);
//ulog the originalcameralocation value
UE_LOG(LogTemp, Display, TEXT("Original Camera Location: %s"), *OriginalCameraLocation.ToString());
}

View File

@ -32,6 +32,12 @@ public:
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Inventory, meta = (AllowPrivateAccess = "true"))
class UInventoryComponent* Inventory; //Using the InventoryComponent class
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ItemSelector")
UUserWidget* ItemSelectorWidget;
UPROPERTY(EditAnywhere, Category = "Widgets")
TSubclassOf<UUserWidget> ItemSelector;
// Called to bind functionality to input
virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;