If I have two (or more) variables for the replication, may I be sure that they are delivered simultaneously?
Example:
There is a quite massive array MyArray.
There is a quite light bool variable bMyBool.
I change both of them on the Server in the one function and wait for replication:
void UMyClass::OnRep_MyBoolReplicated()
{
GetMyArray();
}
void UMyClass::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const
{
Super::GetLifetimeReplicatedProps(OutLifetimeProps);
DOREPLIFETIME_CONDITION(UMyClass, MyArray, COND_OwnerOnly);
DOREPLIFETIME_CONDITION(UMyClass, bMyBool, COND_OwnerOnly);
}
May I be sure, that GetMyArray() will turn back new (replicated) MyArray?
Or bMyBool can be replicated first?