Skipping attachment replication

Hey there! I was wondering if there is an easy way to skip attachment replication for components in c++

Are you talking about the replicated properties of USceneComponent here, or AActors’ attachment replication?

If USceneComponent, the simplest way is to mark the component as not-replicated (the default).

Alternatively, you can subclass the component and use the DISABLE_REPLICATED_PRIVATE_PROPERTY macro within an overridden GetLifetimeReplicatedProps(). This can only be done at the component class level, you cannot turn this off per component instance or per actor unless you disable them in PreReplication().

@TheJamsh Thanks for the reply, I ended up doing it in an actor class instead of the component itself by overriding the OnRep_AttachmentReplication function.