← .h FILE →
UFUNCTION(BlueprintPure, Category = “…”)
UPARAM(ref) FQS_QuestInfo& GetQuestInfo(int32 Index);
UFUNCTION(BlueprintCallable, Category = “…”)
void SetActivityPending(UPARAM(ref)FQS_QuestInfo& InStruct);
← .cpp FILE →
FQS_QuestInfo& GetQuestInfo(int32 Index){
return UQS_Journal::QuestList[Index];
}
void SetActivityPending(FQS_QuestInfo& InStruct){
InStruct.Status = EQS_Status::Pending;
}
These are the two functions that give me the problem. One is the getter and the second is the setter. UQS_Journal is the class in which they are declared. EQS_Status is an enum. QuestList is an array of FQS_QuestInfo structs. USTRUCT is BlueprintType. UCLASS is Blueprintable, Abstract, BlueprintType. Sorry I hadn’t post this code in the previous question, I am new of this forum and I dont know how put the code in the squared section (now I have write it with my hands)