So, I’m trying to add a new struct to an tarray of said struct thru a function. But, when trying to get values from that tarray it returns nothing
The declaration of the tarray
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Status") TArray<FStatus> Status;
The Struct
USTRUCT(BlueprintType)
struct FStatus
{
GENERATED_USTRUCT_BODY()
FStatus() {};
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Status")
FString Name;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Status")
FString Description;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Status")
USkillEffect* Effect;//TSubclassOf<class USkillEffect> Effect;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Status")
FSkillContext Ctx;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Status")
int32 Timer = -1;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Status")
int32 MaxTimer = 5;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Status")
int32 Stacks = 1;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Status")
int32 MaxStacks = 5;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Status")
bool bLinkTimerAndStacks=false;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Status")
EEffectsMode Mode = EEffectsMode::Disabled;
bool operator==(const FStatus& Other) const
{
return (Name == Other.Name);
}
};