Skip to content

Best way to represent strings in NetworkVariables in pre8+ #1919

Closed
@ezoray

Description

@ezoray

As mentioned in this thread FixedString*Bytes types can no longer be used directly as network variables. I see in the pre8 release notes the handling of structs has changed, it mentions RPC's but it seems to relate to network variables as well.

With that in mind, what's the best way to have network variables containing string types, something like this?

NetworkVariable<ForceNetworkSerializeByMemcpy<FixedString64Bytes>> playerName = new NetworkVariable<ForceNetworkSerializeByMemcpy<FixedString64Bytes>>();

Metadata

Metadata

Assignees

Labels

type:supportQuestions or other support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions