1.入门1. Getting started

无论你是混合现实新手还是经验丰富的专业人员,都可以使用 HoloLens 2Unreal Engine 开始你的体验之旅。Whether you're new to mixed reality or a seasoned pro, this is the place to start your journey with HoloLens 2 and Unreal Engine. 本系列教程将为你提供有关如何使用 UX Tools 插件构建交互式象棋应用的分步指南,该插件是 Unreal 混合现实工具包的一部分。This tutorial series will give you a step by step guide on how to build an interactive chess app with the UX Tools plugin - part of the Mixed Reality Toolkit for Unreal. 该插件将帮助你通过代码、蓝图和示例将常见的 UX 功能添加到项目中。The plugin will help you add common UX features to your projects with code, blueprints, and examples.

在视口中结束场景

在本系列文章结束时,你将拥有以下方面的实操经验:By the end of the series you'll have hands-on experience with:

  • 开始新项目Starting a new project
  • 设置混合现实Setting up for mixed reality
  • 使用用户输入Working with user input
  • 添加按钮Adding buttons
  • 在模拟器或设备上播放Playing on an emulator or device

必备知识Prerequisites

在开始之前,请确保已安装以下项:Make sure you've installed the following before jumping in:

  • Windows 10 1809 或更高版本Windows 10 1809 or later
  • Windows 10 SDK 10.0.18362.0 或更高版本Windows 10 SDK 10.0.18362.0 or later
  • Unreal Engine 4.25 或更高版本Unreal Engine 4.25 or later
  • 针对开发配置的 Microsoft HoloLens 2 设备,或仿真器Microsoft HoloLens 2 device configured for development or Emulator
  • 具有以下工作负载的 Visual Studio 2019Visual Studio 2019 with the workloads below

安装 Visual Studio 2019Installing Visual Studio 2019

有几个步骤可以确保具有所有必需的 Visual Studio 包:There are a few steps to ensure you have all the required Visual Studio packages:

  1. 安装最新版本的 Visual Studio 2019Install the latest version of Visual Studio 2019

  2. 安装以下工作负载Install the following workloads:

    • 使用 C++ 的桌面开发Desktop development with C++
    • .NET 桌面开发.NET desktop development
    • 通用 Windows 平台开发Universal Windows Platform development
  3. 安装以下组件Install the following components:

    • 编译器、生成工具和运行时 > MSVC v142 - VS 2019 C++ ARM64 生成工具(最新版本)Compilers, build tools, and runtimes > MSVC v142 - VS 2019 C++ ARM64 build tools (latest version)

就这么简单!That's it! 一切准备就绪,现在可以开始象棋项目了。You're all set to move on to starting the chess project.

下一节:2.初始化你的项目和第一个应用程序Next section: 2. Initializing your project and first application