Search Issue Tracker

Fixed in 5.5.0

Votes

1

Found in

5.3.5f1

Issue ID

804103

Regression

Yes

[UNET] SyncVar member variable inside a property setter should throw a compile time warning

Networking

-

Steps to reproduce:
1. open users 'UnetDocsError.zip'
- check console

Expected: warning in console

"Note that setting a SyncVar member variable inside a property setter function does not cause it to be dirtied.
Trying to do this will cause a compile time warning. Because SyncVars use properties internally to mark themselves as dirty,
setting them dirty inside property functions could lead to recursion problems."
http://docs.unity3d.com/Manual/UNetStateSync.html

Reproduced(doesn't throw error): 5.4.0b21, 5.3.5p1, 5.2.5f1
Not Reproducible(throws error): 5.1.5p1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.