Bugfix Hard Reference for GunEffect not Saving

This commit is contained in:
Philip W 2023-01-31 03:13:17 +00:00
parent 8cf4d1d52e
commit 7a715c2e55
6 changed files with 14 additions and 9 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -15,6 +15,11 @@ UHoldToInitCombat::UHoldToInitCombat()
static ConstructorHelpers::FClassFinder<UUserWidget> HUDWidgetClass(TEXT("/Game/Blueprints/Combat_UI/CombatInit"));
InitCombatWidgetClass = HUDWidgetClass.Class;
}
if (GunEffect == nullptr)
{
static ConstructorHelpers::FObjectFinder<UNiagaraSystem> GunEffectAsset(TEXT("/Game/Blueprints/Combat_UI/NS_GunEffect"));
GunEffect = GunEffectAsset.Object;
}
}

View File

@ -23,7 +23,7 @@ public:
UPROPERTY()
TSubclassOf<UUserWidget> InitCombatWidgetClass;
UPROPERTY(EditDefaultsOnly)
UPROPERTY()
UNiagaraSystem* GunEffect;
protected: