LibraryActive

Mirror Networking Attributes

Networking attributes for Mirror, a Unity networking library, to run methods on client or server.

Open source page ↗

Product features

Product features

[Client]

Only a client can call the method; throws a warning on server.

[ClientCallback]

Same as [Client] but no warning on server.

[ClientRpc]

Server uses RPC to run function on all clients.

[Command]

Call from client to run on server; cannot be called from server.

[Server]

Only a server can call the method; throws a warning on client.

[ServerCallback]

Same as [Server] but no warning on client.

[SyncVar]

[TargetRpc]

Server invokes function on a single target client.