How to reference the same struct within its self?

Hey,

I have created a struct with some properties. But one property should be a struct pointer of the type of the created struct. I know I cant use TArray|FNodeData| because it would be a circula dependency.

The problem is that I cant see the array within the editor.

USTRUCT(BlueprintType)
struct FNodeData
{
     .
     .
     .
    UPROPERTY(VisibleAnywhere)
    TArray<FNodeData*> neighbors;
 }

if you make an array of structs, the index of the array can be thought of as a pointer to one of the structs. so in each struct, you can store neighbors as an array of integers.

And in my other class I can then cast them to struct pointers, brilliant :slight_smile: