NetworkBehaviour
NetworkBehaviour allows your scripts to perform networked actions, such as synchronizing data, responding to network events, and handling remote procedure calls (RPCs).
Description
NetworkBehaviour(s) cannot be added to objects directly. This script must be inherited from before it may be included on an object. Inheriting from NetworkBehaviour allows access to network communications and other useful data about the network, server, and client.
Each NetworkBehaviour must be attached to a GameObject that also has a NetworkObject component on it or one of its parent objects.
Adding a NetworkBehaviour derived component at run-time is not yet supported.
Please check out the guide page for more information about all the things you can do with NetworkBehaviours:
Last updated