Description
- The network variable dictionary ignores Owner/Server write permission allowing the non-owner/client to write to the dictionary (possibly its own copy but I'm not sure on that).
- If a client connects while entries are being added to the dictionary a duplicate key error is reported in the client. Something similar happens on change of ownership.
Reproduce Steps
The first issue can be replicated running the code here.
To see the second issue run the code in the attached unitypackage.
Actual Outcome
- Client can write to the dictionary when it doesn't have permission.
- On connection the client reports the error: ArgumentException: An item with the same key has already been added. Key: n
Environment
Description
Reproduce Steps
The first issue can be replicated running the code here.
To see the second issue run the code in the attached unitypackage.
Actual Outcome
Environment
netdictionary.unitypackage.zip