Error BCE0120...

I’m getting this compile error…

‘UnityEngine.BitStream.Serialize’ is inaccessible due to its protection level.

…when attempting to use Network.Serialize() to send a string variable across the network. It works fine with integers, floats, booleans… but I can’t send strings. Is this a limitation of Network.Serialize? Or am I doing something wrong?

You can’t send strings over the network with BitStream.Serialize(). To synchronize a string in this manner you would need to do it manually, for example, by first sending string length and then each char individually in a for loop. You can send strings as parameters in RPC functions.

Ah, that’s a shame, although I can certainly work around it. Thanks for clarifying.