Hello!
So I faced this error, when I assign a new value to my FText Variable the rep notify doesn´t trigger e.g. no replication;
UPROPERTY(ReplicatedUsing=OnRep_UpdateInputBar)
FText InputText;
UFUNCTION()
void OnRep_UpdateInputBar();
Its Replication settings:
FDoRepLifetimeParams RepParamsNotifyAlways;
RepParamsNotifyAlways.bIsPushBased = true;
RepParamsNotifyAlways.RepNotifyCondition = REPNOTIFY_Always;
RepParamsNotifyAlways.Condition = COND_None;
DOREPLIFETIME_WITH_PARAMS_FAST(ThisClass, InputText, RepParamsNotifyAlways)
The Event it is getting set:
void ATerminal::OnUpdateInputBar_Implementation(const FText& NewText)
{
if(HasAuthority())
{
InputText = NewText;
UE_LOG(LogTemp, Warning, TEXT("RepNotify called: %s"), *InputText.ToString());
MARK_PROPERTY_DIRTY_FROM_NAME(ThisClass, InputText, this);
}
}
void ATerminal::OnRep_UpdateInputBar()
{
UpdateInputBar(InputText);
}
my question would be does anyone know if I need to take care of when replicating Texts because I can´t find a reason in any documention etc.. The event is being exc by the server ofc btw.