Hi there,
I created an enum variable in my Header file:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Defaults, Replicated)
TEnumAsByte<EBattleParty::Type> CapturedByParty;
After that I’ve put it in my replicated Props function:
void ASomCapturePoint::GetLifetimeReplicatedProps(TArray < FLifetimeProperty > & OutLifetimeProps) const
{
Super::GetLifetimeReplicatedProps(OutLifetimeProps);
DOREPLIFETIME(ASomCapturePoint, CapturedByParty);
}
But when I change the value of the enum like this on the server
CapturedByParty = EBattleParty::BP_None;
it doesn’t get changed on the client but only on the server. Is there anything I am doing wrong? Are enums a special case when it comes to replication?