I am using Unreal engine 5.6 on MacOS and was learning about Replication on Udemy. I added OnRep_Something function to RepNotify change on an Actor’s variable. It was working. But then I added,
UFUNCTION()
void Dummy(){}
and all OnRep_ functions stopped working. Then I removed the Dummy() function, and all started working again.
To Repro :
- Setup a OnRep function for your actor, compile and run the game to make sure its working
- Add a dummy UFUNCTION anywhere on any actor
- Observe it will have opposite effect (if it was working, things will break. If it wasn’t working, it will work now)
Thanks in advance.