Hi,
i’ve got few structs inherited from one.
USTRUCT()
struct FBaseStruct { GENERATED_USTRUCT_BODY() }
USTRUCT
struct FChildStruct : public FBaseStruct { GENERATED_USTRUCT_BODY() }
Something like this. Then in other class i have TArray which consist of FBaseStruct and FChildStruct objects. Everything works as intended, But i want to be able to edit struct properties within editor details panel.
Changing
TArray<FBaseStruct*>
to
UPROPERTY(..)
TArray<FBaseStruct>
exposes structs to editor but every object is then FBaseStruct, no matter what i insert, as it should be.
So is there a way to expose pointer to custom type or some other solution for this?
Thanks in advance.
Edit: i get the following error once i declare array of pointers as UPROPERTY is below
Inappropriate '*' on variable of type 'FBaseStruct', cannot have an exposed pointer to this type.