I’m trying to make a custom struct, and have an array of them as a field in a blueprint class. When I select that blueprint class in the main editor, I’d like to be able to edit the fields in the structs within the array from the Details panel. This is what I see right now:
Here is my code for the struct so far:
USTRUCT(BlueprintType)
struct FFABRIKSegment {
GENERATED_USTRUCT_BODY()
public:
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="Fields")
float y_lower_limit_;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "Fields")
float y_upper_limit_;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "Fields")
float z_lower_limit_;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "Fields")
float z_upper_limit_;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "Fields")
float length_;
FFABRIKSegment() : y_lower_limit_(1), y_upper_limit_(1), z_lower_limit_(1), z_upper_limit_(1), length_(10) {}
FFABRIKSegment(float y_lower_limit, float y_upper_limit, float z_lower_limit, float z_upper_limit, float length) :
y_lower_limit_(y_lower_limit), y_upper_limit_(y_upper_limit), z_lower_limit_(z_lower_limit), z_upper_limit_(z_upper_limit), length_(length) {}
};