Make usable UStruct in details panel

For me this always works perfectly fine I expose structs very often I would try remove the public in the struct (this solves the compiler error). But to expose it in the editor you need DECLARE a viriable of “FAnswerText”! Add

UPOROPERTY(EditAnywhere)
FText AnswerText;

UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Whatever")
FAnswerText AnswerText;