Update Attributes.md (#398)

Removed NetworkHash128 and NetworkInstanceId from the types list.
This commit is contained in:
Chris Langsenkamp 2019-02-10 11:57:26 -05:00 committed by Paul Pacheco
parent 04e54e17ff
commit 44c9c0a672

View File

@ -26,8 +26,6 @@ These attributes can be used for Unity game loop methods like Start or Update, a
- Arrays of basic types - Arrays of basic types
- Structs containing allowable types - Structs containing allowable types
- NetworkIdentity - NetworkIdentity
- NetworkInstanceId
- NetworkHash128
- GameObject with a NetworkIdentity component attached. - GameObject with a NetworkIdentity component attached.
- **SyncVar** - **SyncVar**
SyncVars are used to synchronize a variable from the server to all clients automatically. Don't assign them from a client, it's pointless. Don't let them be null, you will get errors. You can use int, long, float, string, Vector3 etc. (all simple types) and NetworkIdentity and GameObject if the GameObject has a NetworkIdentity attached to it. You can use [hooks](SyncVarHook). SyncVars are used to synchronize a variable from the server to all clients automatically. Don't assign them from a client, it's pointless. Don't let them be null, you will get errors. You can use int, long, float, string, Vector3 etc. (all simple types) and NetworkIdentity and GameObject if the GameObject has a NetworkIdentity attached to it. You can use [hooks](SyncVarHook).