mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Update Attributes.md (#398)
Removed NetworkHash128 and NetworkInstanceId from the types list.
This commit is contained in:
parent
04e54e17ff
commit
44c9c0a672
@ -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).
|
||||||
|
Loading…
Reference in New Issue
Block a user