fix: UI error class and change unreal version to 5.6
This commit is contained in:
parent
2ee75d30c4
commit
2910626a7b
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"FileVersion": 3,
|
||||
"EngineAssociation": "5.3",
|
||||
"EngineAssociation": "5.6",
|
||||
"Category": "",
|
||||
"Description": "",
|
||||
"Modules": [
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user