I’m using classes derived from UObject to replicate only data across server and client by marking a raw pointer to the class as UPROPERTY(Replicated) and then adding it to GetLifetimeReplicatedProps .
The UObject based class is instantiated at runtime inside an AActor using NewObject and assigned to the pointer.
but as you guessed it its not replicating to the client. I came across a few post mentioning how to replicate UObject independently but that is not what I want to do here, I want to replicate the UObject class as a variable in the actor class.
Any suggestions on this? Or should I switch to USTRUCT instead (which would mean losing the ability to pre-define the data)?