![]() Add MRTK to a new scene or new projectĬreate a new Unity project, or start a new scene in your current project. Also, read through input simulation docs to learn more about in-editor hand input simulation in MRTK.Ĭongratulations, you just used your first MRTK scene. Have fun exploring the scene! You can learn more about the UI controls in the hand interaction examples guide. Click the left mouse to switch gestures.Use the middle mouse scroll to adjust the depth of the hand.While holding the space bar, move your mouse to move the hand.Press and hold the space bar to enable the right hand.Press and hold the right mouse to rotate the camera.Use W/A/S/D keys to move the camera forward/left/back/right.The in-editor input simulation allows you to test virtual object behavior given a specific type of input such as hands or eyes. Using the In-Editor Hand Input Simulation to test a scene You can do this by double clicking the scene in the project tab. (See Text in Unity for more detailed information)Ĭlose the TMP dialog. "TMP Essentials" refers to Text Mesh Pro plugin, which some of the MRTK examples use for improved text rendering. If you get such a prompt, select "Import TMP essentials" button. You may get a prompt asking you to import "TMP Essentials". Open the HandInteractionExamples scene under Assets\MixedRealityToolkit.Examples\Demos\HandTracking\Scenes\HandInteractionExamples To get started we will import MRTK, open the example scene, and explore the scene in the editor.Ĭreate a new Unity project and then import both the Foundation and Examples unity packages following the steps above. The hand interaction examples scene is a great place to get started because it shows a wide variety of UX controls and interactions in MRTK. Open and run the HandInteractionExamples scene in editor After you import TMP Essentials Resources, you need to restart Unity to see changes. Some prefabs and assets require TextMesh Pro, meaning you have to have the TextMesh Pro package installed and the assets in your project (Window -> TextMeshPro -> Import TMP Essential Resources). Force Text Serialization / Visible Meta files (recommended for Unity projects using source control).Īccepting these options is completely optional, but recommended.Enable XR Settings for your current platform (enabling the XR checkbox).MRTK is attempting to set up your project for building Mixed Reality solutions by doing the following: The extensions package provides a set of useful optional components for the MRTK.Īfter importing the Foundation package, you may see a setup prompt like the following: Import the .unitypackage following the same steps as for the foundation package.These tools package is optional and contains useful tools, such as the ExtensionServiceCreator, that enhance the MRTK developer experience. The examples package is optional and contains useful demonstration scenes for current MRTK features. Import the .unitypackage following the same steps as above.unitypackage file, ensure all items to import are checked, and then selecting "Import". Import the .unitypackage you downloaded by going into "Asset -> Import Package -> Custom Package", selecting the.When creating a project, make sure to select "3D" as the template type. ![]() Create a new Unity project, or open an existing project.Import MRTK packages into your Unity project Select Universal Windows Platform in the Platform list.You should make sure that you select the correct platform before following the next step.įor instance, if you want to create a HoloLens application, switch to Universal Windows Platform: The next step Import MRTK packages into your Unity project will apply changes to your project specifically for the platform that is selected in the project at that moment you import them. Switch your Unity project to the target platform .unitypackageįor additional delivery mechanisms, please see Downloading the MRTK.Add MRTK to your Unity Project Get the latest MRTK Unity packages If you are new to MRTK, or MR development, we recommend you check out the Getting started tutorials which uses MRTK v2. This is necessary if you are building a UWP app for WMR, HoloLens 1, or HoloLens 2. To get started with the Mixed Reality Toolkit you will need: The Mixed Reality Toolkit (MRTK) is a cross-platform toolkit for building Mixed Reality experiences for Virtual Reality (VR) and Augmented Reality (AR).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |