Skip to content

Mirror::SyncVarAttribute

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

Inherits from PropertyAttribute

Public Attributes

Name
string hook

Detailed Description

class Mirror::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.

Public Attributes Documentation

variable hook

string hook;

Updated on 17 January 2021 at 15:32:32 UTC