Manual     Reference     Scripting  
  
Scripting > Attributes > RPC   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Enumerations
  • History
  • Index
  • Attributes
  • AddComponentMenu
  • ContextMenu
  • ExecuteInEditMode
  • HideInInspector
  • NonSerialized
  • RPC
  • RenderBeforeQueues
  • RequireComponent
  • Serializable
  • SerializeField

RPC Class, inherits from Attribute  

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