I am sending this structure using an RPC:
USTRUCT()
struct FCustomTransform
{
GENERATED_BODY()
UPROPERTY()
FVector_NetQuantize100 Location = FVector_NetQuantize100();
//Using FVector_NetQuantize100 instead of FRotator
UPROPERTY()
FVector_NetQuantize100 Rotation = FVector_NetQuantize100();
};
When I was sending FRotator 300 bits were transferred.
Using FVector_NetQuantize100 also transfers 300 bits.
There is not difference or improvement.
I am passing the data as a parameter in an RPC function
UFUNCTION(NetMulticast,Unreliable)
void Execute_MultiShoot(const FCustomTransform &MuzzleTransform, const FCustomTransform &ProjectileTransform, const ENetRole CurrentRole);
RPCs send more data than function parameters?
How can this be improved?
Thank you so much!!