日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Getting started with MRTK and XR SDK

    XR SDK is Unity's new XR pipeline in Unity 2019.3 and beyond. In Unity 2019, it provides an alternative to the existing XR pipeline. In Unity 2020, it will become the only XR pipeline in Unity.

    Prerequisites

    To get started with the Mixed Reality Toolkit, follow the provided steps to add MRTK to a project.

    Add XR SDK to a Unity project

    Windows Mixed Reality and Oculus are supported on XR SDK.

    Required in Unity

    Windows Mixed Reality

    1. Go into Unity's Package Manager and install the Windows XR Plugin package, which adds support for Windows Mixed Reality on XR SDK. This will pull down a few dependency packages as well. Ensure the following all successfully installed:
      1. XR Plugin Management
      2. Windows XR Plugin
      3. XR Legacy Input Helpers
    2. Go to Edit > Project Settings.
    3. Click on the XR Plug-in Management tab in the Project Settings window.
    4. Go to the Universal Windows Platform settings and ensure Windows Mixed Reality is checked under Plug-in Providers.
    5. Ensure that Initialize XR on Startup is checked.
    6. (Required for in-editor HoloLens Remoting, otherwise optional) Go to the Standalone settings and ensure Windows Mixed Reality is checked under Plug-in Providers. Also ensure that Initialize XR on Startup is checked.
    7. (Optional) Click on the Windows Mixed Reality tab under XR Plug-in Management and create a custom settings profile to change the defaults. If the list of settings are already there, no profile needs to be created.

    Plugin management

    Required in MRTK

    Choose the "DefaultXRSDKConfigurationProfile" as the active profile or clone it to make customizations. This profile is set up with MRTK's XR SDK systems and providers, where needed.

    To migrate an existing profile to XR SDK, the following services and data providers should be updated:

    Camera

    From WindowsMixedReality.WindowsMixedRealityCameraSettings

    Legacy camera settings

    to XRSDK.WindowsMixedReality.WindowsMixedRealityCameraSettings and GenericXRSDKCameraSettings

    XR SDK camera settings

    Input

    From WindowsMixedReality.Input.WindowsMixedRealityDeviceManager

    Legacy input settings

    to XRSDK.WindowsMixedReality.WindowsMixedRealityDeviceManager

    XR SDK input settings

    Boundary

    From MixedRealityBoundarySystem

    Legacy boundary settings

    to XRSDKBoundarySystem

    XR SDK boundary settings

    Spatial awareness

    From WindowsMixedReality.SpatialAwareness.WindowsMixedRealitySpatialMeshObserver

    Legacy spatial awareness settings

    to XRSDK.WindowsMixedReality.WindowsMixedRealitySpatialMeshObserver

    XR SDK spatial awareness settings

    Controller mappings

    If using custom controller mapping profiles, open one of them and run the Mixed Reality Toolkit -> Utilities -> Update -> Controller Mapping Profiles menu item to ensure the new XR SDK controller types are defined.

    See also

    • Getting started with AR development in Unity
    • Getting started with VR development in Unity
    • Improve this Doc
    Back to top Generated by DocFX