I’m using a struct to track the affinity of each character for each other character, it seems to be fairly straightforward:
//Struct definition
USTRUCT(BlueprintType)
struct FRelationship {
GENERATED_USTRUCT_BODY()
UPROPERTY(BlueprintReadOnly)
int32 CharacterID;
UPROPERTY(BlueprintReadOnly)
float affinity;
};
//Elsewhere in code
UPROPERTY(BlueprintReadOnly)
TArray<FRelationship> relationships;
When I try to split the struct pin of my relationships array, it’s greyed out with the error “Cannot split struct pin, it may be missing blueprint exposed properties”. Am I missing something? I was under the impression that as long as a struct was marked as BlueprintType, and as long as its variables were either BlueprintReadOnly or BlueprintReadWrite, it could be split and viewed inside the editor.