Replicate a TArray of Structs

Hey Guys,
Pretty short question: Is it possible to replicate a TArray of structs? I know, that it is possible to replicate a struct as well as an Array, but how about TArrays of structs? I suppose that would consume pretty much bandwidth, but right now I don’t know of another possibility.

Thanks in advance,

I am currently storing all my character data like this, and it all seems to replicate.

I have not tested this extensively, as I have just introduced networking to the project, but all seems to work fine.

Hope this helps… :slight_smile:

Great thanks! I haven’t implented networking yet but this will help me creating a concept for the implementation in my game :slight_smile:

You can replicate structs of arrays of structs

struct FStruct1
FStruct1() {}
struct FStruct2
FStruct2() {}

TArray<FStruct1> Array;

UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "SomeCat", Replicated)
public: TArray<FStruct2> Array2;