How to use the "built-in support for NativeHashMap
" of NetworkVariable
#2960
Labels
priority:high
This issue has high priority and we are focusing to resolve it
stat:imported
Status - Issue is tracked internally at Unity
type:bug
Bug Report
NGO v1.9.1
Unity 2022.3.22f1
as release blog says, NetworkVariable now includes built-in support for
NativeHashMap
by #2813 , but how to use it?Here is my NetworkBehaviour code:
However when spawn this NetworkObject I received error:
Obviously cannot add a
[GenerateSerializationForType(typeof(NetworkVariable<NativeHashMap<int, NativeArray<byte>>>))]
to fix this. So what's proper way to use NetworkVariable with NativeHashMap and etc mentioned in release blog?The text was updated successfully, but these errors were encountered: