• Guides
    • English
    • 日本語
  • API Documentation
  • 機能概要
  • Cross Platform Support
  • Configure MRTK for iOS and Android

    Show / Hide Table of Contents
    • MRTK を始める
      • Release Notes
      • MRTK Package Contents
      • Updating from earlier versions
      • HTK からの移植ガイド
      • MRTK のビルドとデプロイ
      • NuGet Packages
      • Getting started with MRTK and XR SDK
      • Performance
      • Hologram Stabilization (ホログラムの安定化)
    • アーキテクチャ
      • 全体像
      • フレームワークとランタイム
      • Input System (入力システム)
        • 用語
        • Core System
        • Controllers, Pointers, and Focus
      • Systems, Extension Services and Data Providers
    • 機能概要
      • Boundary System
        • Boundary System Overview
        • Configuring the Boundary Visualization
      • Camera System
        • Camera System Overview
        • Camera Settings Providers
          • Windows Mixed Reality Camera Settings
          • Unity AR Camera Settings [Experimental]
          • Creating a camera settings provider
      • Cross Platform Support
        • Configure MRTK for iOS and Android
      • プラットフォームの Capabilities (機能) を検出する
      • Diagnostics System (診断システム)
        • 診断システムの概要
        • 診断システムの構成
        • ビジュアル プロファイラーを使用する
      • Extension Services
        • Extension Service Creation Wizard
        • Scene Transition Service Overview
        • Hand Physics Service Overview
      • Input System (入力システム)
        • 入力の概要
        • Input Actions
        • Input Events
        • Input Providers
          • Input Providers Overview
          • Creating an input data provider
        • Controllers (コントローラー)
        • Eyes
        • Gaze (ゲイズ)
        • Gestures (ジェスチャ)
        • Hands
        • How to Add Near Interaction
        • エディター内入力シミュレーション
        • Pointers
        • Voice Input
          • Dictation (ディクテーション)
          • Speech (コマンドとコントロール)
      • Multi Scene System
        • Multi Scene System Overview
        • Scene Types
        • Content Scene Loading
        • Monitoring Content Loading
        • Lighting Scene Operations
      • パッケージ
        • MRTK パッケージ
        • MRTK Modularization
      • Profiles (プロファイル)
        • プロファイル概要
        • 設定ガイド
      • Rendering
        • Material Instance Overview
        • Shaders
          • MRTK Standard Shader
      • Services (サービス)
        • What makes a mixed reality feature
        • MixedRealityServiceRegistry と IMixedRealityServiceRegistrar とは何か
        • Extension services
      • Spatial Awareness System (空間認識システム)
        • Spatial Awareness (空間認識) 概要
        • Spatial Observers
          • Configuring Observers for Device
          • Configuring Observers for Editor
          • Controlling Observers via Code
          • Creating a custom Observer
      • Teleport System (テレポートシステム) 概要
      • ツール
        • Dependency Window (依存関係ウィンドウ)
        • Extension Service Creation Wizard
        • Holographic Remoting
        • Input Animation Recording
          • Input Animation File Format Specification
        • Optimize Window
        • Runtime tools
          • Controller Mapping tool
      • UX ビルディング ブロック
        • Interactable (インタラクタブル)
        • Button (ボタン)
        • Bounding Box
        • Object Manipulation (物体操作)
        • Sliders (スライダー)
        • Fingertip Visualization
        • App Bar
        • Object Collection (オブジェクトコレクション)
        • Slate (スレート)
        • System Keyboard (システム キーボード)
        • Tooltips (ツールチップ)
        • Solvers (ソルバー)
      • Example Scenes
        • Examples Hub
        • ハンド インタラクションのサンプル
        • アイ トラッキング インタラクションのサンプル
      • Experimental
        • Scrolling Object Collection
        • Hand Coach UX
        • Pulse Shader
    • Contributing
      • Contributing Overview
      • Coding Guidelines
      • Writing and Running Tests
      • Writing Documentation
      • Pull Requests
      • Experimental Features
      • Breaking Changes
      • How to use DocFX
    • Planning
      • Roadmap
    • Notice
    • Authors

    How to configure MRTK for iOS and Android [Experimental]

    Install required packages

    1. Download and import the Microsoft.MixedReality.Toolkit.Unity.Foundation package, from GitHub or NuGet

    2. In the Unity Package Manager (UPM), install the following packages:

      Unity 2018.4.x

      Android iOS Comments
      AR Foundation
      Version: 1.5.0 - preview 6
      AR Foundation
      Version: 1.5.0 - preview 6
      For Unity 2018.4, this package is included as a preview. To view package: Window > Package Manager > Advanced > Show Preview Packages
      ARCore XR Plugin
      Version: 2.1.2
      ARKit XR Plugin
      Version: 2.1.2

      Unity 2019.3.x

      Android iOS
      AR Foundation
      Version: 2.1.4
      AR Foundation
      Version: 2.1.4
      ARCore XR Plugin
      Version: 2.1.2
      ARKit XR Plugin
      Version: 2.1.2

    Enabling the Unity AR camera settings provider

    The following steps presume use of the MixedRealityToolkit object. Steps required for other service registrars may be different.

    1. Select the MixedRealityToolkit object in the scene hierarchy.

      MRTK Configured Scene Hierarchy

    2. Select Copy and Customize to Clone the MRTK Profile to enable custom configuration.

      Clone MRTK Profile

    3. Select Clone next to the Camera Profile.

      Clone MRTK Camera Profile

    4. Navigate the Inspector panel to the camera system section and expand the Camera Settings Providers section.

      Expand settings providers

    5. Click Add Camera Settings Provider and expand the newly added New camera settings entry.

      Expand new settings provider

    6. Select the Unity AR Camera Settings provider

      Select Unity AR settings provider

      For more information about configuring the Unity AR camera settings provider: Unity AR camera settings provider.

    Building a scene for Android and iOS devices

    1. Make sure you have added the UnityAR Camera Settings Provider to your scene.

    2. Switch platform to either Android or iOS in the Unity Build Settings

      When you switch the platform you should see the MRTK Project Configurator Window with settings for your chosen platform. Click Apply to enable platform specific settings.

      iOS Project Configurator Settings

      iOS Project Configurator

    3. There are no additional steps after switching the platform for Android.

    4. If the platform is iOS, Edit > Project Settings > Player > Other Settings, under the Optimization header, uncheck Strip Engine Code

      iOS Settings

      Note

      Unchecking Strip Engine Code is the short term solution to an error in Xcode #6646. We are working on a long term solution.

    5. Build and run the scene

    See also

    • Unity AR Camera Settings
    • Improve this Doc
    In This Article
    • Install required packages
    • Enabling the Unity AR camera settings provider
    • Building a scene for Android and iOS devices
    • See also
    Back to top Generated by DocFX