Hi! I want to replicate a UObject in c++ for my Status Effects. I searched online and found nothing. What would be the best way to replicate the Status Effect object in c++ ?
At the beginning I used UObjects to represent weapons. But I changed that class to an Actor-derived class because UObject doesn’t have support for Networking.
I could make the status effects Actor based and handle them like my weapons. But i dont know how exspensive creating and destroying of actors would be.
Yes, you can replicate an UObject but you need an actor to handle the replication, but in your case it’s not a problem, you can easily use your Character or your PlayerState or a Component to store your StatusEffects.
Here, you can find how to do this:
I hope this help you !