Raw UObjects can’t be replicated by default. For the first thing you can check your logic with AActor class as a base. upd: or just as a struct inside of a character
If it’s works fine (and i guess it is), and you really sure you need custom uobject replication then here is a kind of a guide:
But realistically there is a chances there are already a place in engine for handling data you need, like GameState, PlayerState, etc. I suggest checking this guide first before diving into custom uobjects.
Fyi in my project i’m also started from custom uobjects, but after all 95% of code was moved back into engine-provided classes
Thanks,that’s work.recently I use this method to implement uobject replicate,but UE5.1 add a new system"Subobject Replicate List" according to document,they say you no longer to need override some functions to implement UObject replicate;you can directly use built-in system to replicate uobject derived class.but the new system not work for me.sad thing is,your method will DEPRECATED at next engine update.