1.多用户功能教程简介1. Introduction to the Multi-user capabilities tutorials
欢迎学习多用户功能教程!Welcome to the Multi-User Capabilities tutorials! 通过本系列教程,你将学习有关使用 Photon Unity Networking (PUN) 生成多用户体验的基础知识。Through this tutorial series, you will learn the fundamentals of building a multi-user experience using Photon Unity Networking (PUN). 混合现实开发人员可使用多个网络选项来创建共享体验,PUN 就是其中的一个。PUN is one of several networking options available to mixed reality developers to create shared experiences.
本系列教程:Tutorials in this series:
- 设置 Photon Unity NetworkingSetting up Photon Unity Networking
- 连接多名用户Connecting multiple users
- 与多名用户共享对象移动情况Sharing object movements with multiple users
- 将 Azure 空间定位点集成到共享体验中Integrating Azure Spatial Anchors into a shared experience
目标Objectives
- 了解如何创建 PUN 应用并将其连接到 Unity 项目Learn how to create a PUN app and connect your Unity project to it
- 了解如何在共享体验中连接多名用户Learn how to connect multiple users in a shared experience
- 了解如何与其他用户共享对象移动情况Learn how to share the object movements with other users
- 了解如何在多台设备之间实现空间对齐Learn how to achieve spatial alignment between multiple devices
必备条件Prerequisites
- 一台 Windows 10 计算机,其中已安装并配置正确的工具A Windows 10 computer configured with the correct tools installed
- Windows 10 SDK 10.0.18362.0 或更高版本Windows 10 SDK 10.0.18362.0 or later
- 一台针对开发配置的 HoloLens 2 设备A HoloLens 2 device configured for development
- Unity Hub,其中已安装 Unity 2019.3.15 并添加了通用 Windows 平台生成支持模块Unity Hub with Unity 2019.3.15 installed and the Universal Windows Platform Build Support module added
- 已完成创建空间定位点资源部分(位于快速入门:创建使用 Azure 空间定位点的 Unity HoloLens 应用Completed the Create a Spatial Anchors resource section of the Quickstart: Create a Unity HoloLens app that uses Azure Spatial Anchors tutorial
- 已完成入门教程系列,或者之前有一些使用 Unity 和 MRTK 的基本经验Completed the Getting started tutorials series or some basic prior experience with Unity and MRTK
- 已完成 Azure 空间定位点教程系列,或者之前创建 Azure 空间定位点帐户的经验Completed the Azure Spatial Anchors tutorials series or prior experience creating an Azure Spatial Anchors Account
- 如果打算部署到 Android 和 HoloLensIf you intend to deploy to Android as well as HoloLens
- 开发人员实现且支持 ARCore的 Android 设备,该设备通过 USB 与 Windows 或 macOS 计算机相连接A developer enabled and ARCore capable Android device with USB connection to your Windows or macOS computer
- Unity Hub,其中已安装 Unity 2019.3.15 且已添加 Android 生成支持模块Unity Hub with Unity 2019.3.15 installed and the Android Build Support module added
- 如果打算部署到 iOS 和 HoloLensIf you intend to deploy to iOS as well as HoloLens
- 一台已安装最新版 Xcode 和 CocoaPods 的 macOS 计算机A macOS computer with the latest version of Xcode and CocoaPods installed
- 与 ARKit 兼容且通过 USB 连接到 macOS 计算机的 iOS 设备An ARKit compatible iOS device with USB connection to your macOS computer
- Unity Hub,其中已安装 Unity 2019.3.15 且已添加 iOS 生成支持模块Unity Hub with Unity 2019.3.15 installed and the iOS Build Support module added
注意
建议对本系列教程使用混合现实工具包版本 MRTK 2.4.0。The recommended Mixed Reality Toolkit version for this tutorial series is MRTK 2.4.0.
注意
建议对本系列教程使用 Unity 2019.3.15。The recommended Unity version for this tutorial series is Unity 2019.3.15. 这将取代上述链接的先决条件中所述的任何 Unity 版本要求。This supersedes any Unity version requirements stated in the prerequisites linked above.