Version: 2017.3
将单人游戏转换为 Unity Multiplayer 多人游戏
多玩家高级 API

调试信息

Unity 提供了若干工具在运行时获取游戏的相关信息。这些信息对于测试多人游戏很有用。

当游戏在 Editor 中以播放模式运行时,Network Manager HUD Inspector 将显示有关运行时网络状态的额外信息。这些信息包括:

  • 网络连接

  • 服务器上的包含 Network Identity 组件的活动游戏对象

  • 客户端上的包含 Network Identity 组件的活动游戏对象

  • 对等客户端

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.

此外,Network Manager 预览面板(在 Inspector 窗口底部)将列出已注册的消息回调处理程序。

The Network Manager HUD component preview pane, showing registered callback handlers.
The Network Manager HUD component preview pane, showing registered callback handlers.
将单人游戏转换为 Unity Multiplayer 多人游戏
多玩家高级 API
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961