Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

RPC

Namespace: UnityEngine

Switch to Manual

Description

Attribute for setting up RPC functions.

Given an @RPC (javascript) or [RPC] attribute (C#) any function can be called remotely through Unity Networking. The function must exist on both sending and recieving party.

See Also: NetworkView.RPC.