fix: UI error class and change unreal version to 5.6

This commit is contained in:
Foxim 2025-06-06 12:52:38 +02:00
parent 2ee75d30c4
commit 2910626a7b
5 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{
"FileVersion": 3,
"EngineAssociation": "5.3",
"EngineAssociation": "5.6",
"Category": "",
"Description": "",
"Modules": [

View File

@ -108,7 +108,7 @@ void AExoPlayerCharacter::CrouchingUpdate(float Alpha)
float CurrentCamHeight = GetCurrentEyeHeight();
float NewHalfHeight = FMath::Lerp(
StandingHalfHeight, GetCharacterMovement()->CrouchedHalfHeight, Alpha);
StandingHalfHeight, GetCharacterMovement()->GetCrouchedHalfHeight(), Alpha);
GetCapsuleComponent()->SetCapsuleHalfHeight(NewHalfHeight);
CameraComponent->SetRelativeLocation(

View File

@ -18,7 +18,7 @@ void UUWBP_RoundProgressBar::SetPercent(float percent)
{
if (!ImageBar)
return;
FSlateBrush brush= ImageBar->Brush;
FSlateBrush brush= ImageBar->GetBrush();
UMaterialInterface* material=Cast<UMaterialInterface>(brush.GetResourceObject());
if (!material)
return;
@ -27,7 +27,7 @@ void UUWBP_RoundProgressBar::SetPercent(float percent)
{
FSlateBrush newBrush= brush;
newBrush.SetResourceObject(DynamicMaterial);
ImageBar->Brush = newBrush;
ImageBar->SetBrush(newBrush);
}
}
if (DynamicMaterial)

View File

@ -138,7 +138,7 @@ void UWBP_PlayerUI::NativeTick(const FGeometry& MyGeometry, float InDeltaTime)
{
if (!ViewFinder)
return;
FSlateBrush brush= ViewFinder->Brush;
FSlateBrush brush= ViewFinder->GetBrush();
UMaterialInterface* material=Cast<UMaterialInterface>(brush.GetResourceObject());
if (!material)
return;
@ -147,7 +147,7 @@ void UWBP_PlayerUI::NativeTick(const FGeometry& MyGeometry, float InDeltaTime)
{
FSlateBrush newBrush= brush;
newBrush.SetResourceObject(DynamicViewFinderMaterial);
ViewFinder->Brush = newBrush;
ViewFinder->SetBrush(newBrush);
}
}
if (DynamicViewFinderMaterial)

View File

@ -57,7 +57,7 @@ public:
float BufAngleDiff;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Buf")
TSubclassOf<UUserWidget> BufClass;
TSubclassOf<UUWBP_Buf> BufClass;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Ammo")
TMap<EAmmoType, UTexture2D*> AmmoIconMap;