Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

MsgType

class in UnityEngine.Networking

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual

Description

Container class for UNET built-in message types.

Static Variables

AddPlayerInternal UNET message for adding player objects to client instances.
AnimationInternal UNET message for sending synchronizing animation state.
AnimationParametersInternal UNET message for sending synchronizing animation parameter state.
AnimationTriggerInternal UNET message for sending animation triggers.
CommandInternal UNET message for sending a command from client to server.
ConnectInternal UNET message for communicating a connection has occurred.
CRCInternal UNET message for HLAPI CRC checking.
DisconnectInternal UNET message for communicating a disconnect has occurred,.
ErrorInternal UNET message for communicating an error.
HighestThe highest value of built-in UNET message ids. User messages must be above this value.
InternalHighestThe highest value of internal UNET message ids. User messages must be above this value. User code cannot replace these handlers.
LobbyAddPlayerFailedInternal UNET message for communicating failing to add lobby player.
LobbyReadyToBeginInternal UNET message for communicating a player is ready in the lobby.
LobbyReturnToLobbyInternal UNET messages used to return the game to the lobby scene.
LobbySceneLoadedInternal UNET message for communicating a lobby player has loaded the game scene.
LocalPlayerTransformInternal UNET message for sending tranforms from client to server.
NetworkInfoInternal UNET message for sending information about network peers to clents.
NotReadyInternal UNET message for server to tell clients they are no longer ready.
ObjectDestroyInternal UNET message for destroying objects.
ObjectHideInternal UNET message for hiding objects.
ObjectSpawnInternal UNET message for spawning objects.
ObjectSpawnSceneInternal UNET message for spawning scene objects.
OwnerInternal UNET message for telling clients they own a player object.
ReadyInternal UNET message for clients to tell server they are ready.
RemovePlayerInternal UNET message for removing a player object which was spawned for a client.
RpcInternal UNET message for sending a ClientRPC from server to client.
SceneInternal UNET message that tells clients which scene to load when they connect to a server.
SpawnFinishedInternal UNET messages used to tell when the initial contents of a scene is being spawned.
SyncEventInternal UNET message for sending a SyncEvent from server to client.
SyncListInternal UNET message for sending a USyncList generic list.
UpdateVarsInternal UNET message for updating SyncVars on a client from a server.

Variables

Networking.MsgTypeInternal UNET message for overriding a local player transform.
Networking.MsgTypeInternal UNET message for updating a client transform from a server.

Static Functions

MsgTypeToStringReturns the name of internal message types by their id.