Version: 2018.3 (switch to 2019.1 )
Converting a single-player game to Unity Multiplayer
The Multiplayer High Level API
Other Versions

Debugging Information

Note: UNet is deprecated, and will be removed from Unity in the future. A new system is under development. For more information and next steps see this blog post and the FAQ.

Unity provides tools to get information about your game at run time. This information is useful for testing your multiplayer game.

When your game is running in the Editor in Play mode, the Network ManagerA Networking component that manages the network state of a Project. More info
See in Glossary
HUD InspectorA Unity window that displays information about the currently selected GameObject, Asset or Project Settings, alowing you to inspect and edit the values. More info
See in Glossary
shows additional information about the state of the network at runtime. This includes:

  • Network connections

  • Active GameObjectsThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
    See in Glossary
    on the server which have a Network Identity component

  • Active GameObjects on the client which have a Network Identity component

  • Client peers

In Play Mode, the Network Manager HUD component displays additional information about the state of the game and the GameObjects that have spawned.
In Play Mode, the Network Manager HUD component displays additional information about the state of the game and the GameObjects that have spawned.

Additionally, the Network Manager preview pane (at the bottom of the Inspector window) lists the registered message callback handlers.

The Network Manager HUD component preview pane, showing registered callback handlers.
The Network Manager HUD component preview pane, showing registered callback handlers.
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答