I would like my actor part to activate the mum or dad’s replication when this part is added to it.
I attempted to do that:
void UVolumeTriggerComponent::BeginPlay()
{
Tremendous::BeginPlay();
if (!GetOwner()->HasAuthority())
{
return;
}
GetOwner()->SetReplicates(true);
GetOwner()->ForceNetRelevant();
}
however now I’ve a number of warnings like this:
LogReplicationGraph: Warning: ::GetGridNodesForActor known as on TriggerVolume_UAID_309C23D29395EF2201_1696126136 when its CullDistance = 0.00. (Have to be > 0)
however I see the replicated information on purchasers.
So, how one can allow the replication correctly with out that warnings?