Mirror Networking
Mirror.SyncVarAttribute Class Reference

SyncVars are used to synchronize a variable from the server to all clients automatically. More...

Inheritance diagram for Mirror.SyncVarAttribute:

Public Attributes

string hook
 

Detailed Description

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.

Definition at line 11 of file Attributes.cs.

Member Data Documentation

◆ hook

string Mirror.SyncVarAttribute.hook

Definition at line 13 of file Attributes.cs.