Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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, Taces

Product Version: Not Selected
more ▼

asked Oct 20 '14 at 11:25 AM in C++ Programming

avatar image

51 3 6 11

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

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;
more ▼

answered Dec 06 '15 at 11:56 AM

avatar image

95 12 15 21

(comments are locked)
10|2000 characters needed characters left

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... :)

more ▼

answered Dec 04 '14 at 01:21 PM

avatar image

1 2 3

avatar image Taces Dec 07 '14 at 02:10 PM

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

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question