class WEWOD_API AGameStateNetBase : public AGameState
UPROPERTY(BlueprintReadWrite, Replicated, Category = "CustomReplicationData")
TArray<uint8> imgDataArray;
UPROPERTY(BlueprintReadWrite, Replicated, Category = "CustomReplicationData")
int32 myNum;
void AGameStateNetBase::GetLifetimeReplicatedProps(TArray< FLifetimeProperty > & OutLifetimeProps) const
{
Super::GetLifetimeReplicatedProps(OutLifetimeProps);
DOREPLIFETIME(AGameStateNetBase, imgDataArray);
DOREPLIFETIME(AGameStateNetBase, myNum);
}
This two property,i want to use in blueprint and can Replicate to client
In the blueprint, I assigned these two properties on the server, but the two properties were not Replicate to the client
My class is inherited GameState
i don’t know why…
Please come across this problem or know the answer to this question, to help out, thank you