NetworkView
Inherits from Object. Represents a network view on a map object that has the "networked" flag.
Fields
Owner
Player
true
The network view's owner.
Functions
Transfer(target: Player)
null
Owner only. Transfer ownership of this NetworkView to another player.
SendMessage(target: Player, message: string)
null
Send a message to a target player. This will be received in any of the MapObject attached components through the OnNetworkMessage callback.
SendMessageAll(message: string)
null
Send a message to all players including myself.
SendMessageOthers(message: string)
null
Send a message to players excluding myself.
SendStream(item: Object)
null
Send an object to the network sync stream. This represents sending data from the object owner to all non-owner observers, and should only be called in the SendNetworkStream callback in the attached component. It only works with some object types: primitives and Vector3.
ReceiveStream(item: Object)
null
Receive an object through the network sync stream. This represents receiving data from the object owner as a non-owner observer, and should only be called in the OnNetworkStream callback.
Last updated