Class SyncVarAttribute
SyncVars are used to synchronize a variable from the server to all clients automatically.
Value must be changed on server, not directly by clients. Hook parameter allows you to define a client-side method to be invoked when the client gets an update from the server.
Namespace: Mirror
Assembly: doc.dll
Syntax
public class SyncVarAttribute : PropertyAttribute
Fields
| Improve this Doc View Sourcehook
Declaration
public string hook
Field Value
Type | Description |
---|---|
String |