Networking C++ "WithValidation"
I'm trying to get multiplayer working and it's pretty okay-ish so far, but I'm confused about the "WithValidation":
UFUNCTION(reliable, server, WithValidation) <-- void foo();
What exactly does it do? So far all of my foo_validate() functions just return true, is that correct?
I'd appreciate any help, thanks in advance!
asked Aug 01 '14 at 12:59 PM in C++ Programming
This function is new to UE4 and designed to provide security and validation of remote procedure calls sent from the client to the server. The goal is that you'll provide some conservative error checking on the RPC before we allow the actual RPC to come through.
Often, return true is fine, but if you can validate the input that would be better.
The game will disconnect the client if the data is invalid.
answered Aug 01 '14 at 08:24 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here