NetCode: Ghosting Dynamic buffers?

Hi,

I have an IBufferElement struct with some value that I added the GhostComponent and GhostField attribute to, but I can’t get it to generate the serialization code for it.

Am I doing this wrong or is this just unsupported currently?

It’s not supported yet.
What you can do is convert the buffer to a byte[ ] and send it over the wire with a FixedString RPC or have it synchronized on the ghost.

Okay, thanks for the answer :slight_smile:

Not sure how it can be synchronized on the ghost though. If I can synchronize a fixed array on the ghost that would work for me, but I would think a byte[ ] ends up in managed memory and that feels like it is probably even more unsupported. But I haven’t tested that so I could give it a try