Search Unity

Send custom classes through Unet

Discussion in 'UNet' started by aaron95j, Oct 21, 2015.

  1. aaron95j

    aaron95j

    Joined:
    Dec 9, 2013
    Posts:
    30
  2. codestage

    codestage

    Joined:
    Jul 27, 2012
    Posts:
    1,931
  3. l3fty

    l3fty

    Joined:
    Mar 23, 2013
    Posts:
    87
    Similar to what Dmitriy suggests, I usually have custom serialize & deserialize methods for classes I want to send over the network. Remote actions (like Command and ClientRPC) can take your serialized class byte arrays as parameters.