Class NetworkManagerHUD
An extension for the NetworkManager that displays a default HUD for controlling the network state of the game.
This component also shows useful internal state for the networking system in the inspector window of the editor. It allows users to view connections, networked objects, message handlers, and packet statistics. This information can be helpful when debugging networked games.
Inherited Members
UnityEngine.Component.guiText
UnityEngine.Component.guiElement
UnityEngine.Component.guiTexture
Namespace: UnityEngine.Networking
Syntax
[AddComponentMenu("Network/NetworkManagerHUD")]
[RequireComponent(typeof(NetworkManager))]
[Obsolete("The high level API classes are deprecated and will be removed in the future.")]
public class NetworkManagerHUD : MonoBehaviour
Fields
manager
The NetworkManager associated with this HUD.
Declaration
public NetworkManager manager
Field Value
Type | Description |
---|---|
NetworkManager |
offsetX
The horizontal offset in pixels to draw the HUD runtime GUI at.
Declaration
[SerializeField]
public int offsetX
Field Value
Type | Description |
---|---|
Int32 |
offsetY
The vertical offset in pixels to draw the HUD runtime GUI at.
Declaration
[SerializeField]
public int offsetY
Field Value
Type | Description |
---|---|
Int32 |
showGUI
Whether to show the default control HUD at runtime.
Declaration
[SerializeField]
public bool showGUI
Field Value
Type | Description |
---|---|
Boolean |