Is the order of replicated TArray the same?

TArray must keep items in order, that’s one of it’s features. It can be used to implement binary heap data structure (tree), imagine what would happen if the order could change.

Well - that post was not resolved so it’s hard to tell what was going on there. Assuming the whole replication system works correctly it should guarantee that replicated data is exactly the same on the server and clients. Two TArrays are equal only when they store the same data and this data is in the same order.

“The order of the elements are important - two arrays are only equal if they have the same number of elements in the same order.”

I would be really surprised if the order could change at any point.

Hi,
I need to know, if the order of an TArray (of custom UStructs) is guaranteed to be the same when it gets replicated, so I can rely on it’s indices.

Thanks.

Thank you.
I was curious because I’ve read an 5 year old post of someone, that the order of an TArray of his project is different on server and client.

Link to that post