Can you send an UObject from client to server?

Hi!

Is it possible to send an UObject or similar from the client to the server in an RPC call?

I want to do this since the client should be able to send a lot of different commands with different parameters and it had been nice and simple to just send an object instead of adding one method for each command. Or is there any other good way to solve this issue in unreal engine?

You might be able to send a UStruct as a parameter in an RPC call.
I haven’t done it myself but that would be the first thing I’d try.

You can send an UStruct but I would like the power of inheritance. Otherwise I would need one UStruct for each command and therefore also one method for each command anyway, so then I’m back were I started. I could just have been making the methods from the beginning then and taking the struct’s data as method parameters directly.