- Home /
Send string arrays through Rpc? (Netcode for gameobject)
When trying to send an int[] through Rpc it works, but when sending an array unity throws a compilation error: Assets\rpc.cs(69,50): error - Don't know how to serialize String[] - implement INetworkSerializable or add an extension method for FastBufferWriter.WriteValueSafe to define serialization.
how can i fix this? i did add [serializeField] before declaring the string[].
Answer by yonatanab1 · Feb 18 at 04:47 PM
this relates to "immutable folders" Problem. to solve this one we need to solve the other problem, and than we get a new library which inclueds "NetworkArrays" (like network variables but just for arrays).
https://answers.unity.com/questions/1877683/i-cant-open-any-hdrp-projects.html
Use it instead of sending through rpcs.
Your answer
Follow this Question
Related Questions
RPC isn't called on objects with another name, even though they have the same script. 1 Answer
View ID AllocatedID: # not found during lookup. Strange behaviour may occur 1 Answer
Unet [command] doesn't get called at all. 0 Answers
How to use an RPC to send an animation over the network? 2 Answers
Whats wrong with my RPC,!showing clothes on the network 0 Answers