I have a very simple struct I’m using to encapsulate values for a data node:
USTRUCT(BlueprintType)
struct FInformationNode {
GENERATED_USTRUCT_BODY()
UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
int32 NodeID;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
int32 InformationID;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
bool discovered;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
ENodeType type;
UPROPERTY(VisibleAnywhere,BlueprintReadOnly)
TArray<int32> NodeConnections;
bool operator==(const FInformationNode& rhs) const {
return NodeID == rhs.NodeID;
}
};
I’ve set the struct as BlueprintType, and marked each variable that I want to be able to view in Blueprint as BlueprintReadOnly, but when I extend a pin from the struct’s reference inside Blueprint, it won’t let me view any of my variables- am I missing a macro or something?