Playspace mover tutorial4/18/2024 When that object is moved, the Playspace and Camera will follow loosely behind, subject to the additional local transform changes made by the active SDK and the MRTK.Īnother option is to move the scene contents relative to the camera, although this can become problematic in advanced scenarios incorporating content such as Nav Meshes, terrains, or particle systems.įurther discussion of AR/VR camera rigs can be found in Unity's documentation and elsewhere. The entire rig, Camera and Playspace, can be moved by adding another GameObject to the scene, and making it the parent of the MixedRealityPlayspace. Any settings you make to the Main Camera or MixedRealityPlayspace transforms will at best be overwritten, and at worst result in undefined behavior. These are controlled by the active SDK and the MRTK respectively. While working in your scene, DO NOT move the Main Camera or the MixedRealityPlayspace. The Main Camera is moved as a child to the Playspace - Which allows the playspace to manage the camera in conjunction with the SDKs.MixedRealityPlayspace - The parent object for the headset, which ensures the headset / controllers and other required systems are managed correctly in the scene.Mixed Reality Toolkit - The toolkit itself, providing the central configuration entry point for the entire framework.You will then see the following in your Scene hierarchy: See the profiles for more information on the differences between DefaultMixedRealityToolkitConfigurationProfile and DefaultHoloLens2ConfigurationProfile.If you're getting started on the HoloLens or HoloLens 2, you should choose the "DefaultHoloLens1ConfigurationProfile" or DefaultHoloLens2ConfigurationProfile" instead.This profile is set up with MRTK's XR SDK systems and providers, where needed. If you're using Unity's XR SDK in Unity 2019.3 or later, you should choose the "DefaultXRSDKConfigurationProfile".Select Universal Windows Platform in the Platform list.To create a HoloLens application, switch to the Universal Windows Platform: With the packages imported, the next step is to select the correct platform for the application. Switch your Unity project to the target platform After you import TMP Essentials Resources, you need to restart Unity to see changes. Some prefabs and assets require TextMesh Pro, meaning you need 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: For more information, see How to configure MRTK for iOS and Android.Īfter importing the Foundation package, you may see a prompt similar to the following: The tools package is optional and contains useful tools, such as the ExtensionServiceCreator, that enhance the MRTK developer experience.Īndroid and iOS development require additional package installations. ( Required for version-to-version upgrades, Optional otherwise) Import the .unitypackage following the same steps as the foundation package.Note that the Examples package requires the Extensions package. The examples package is optional and contains useful demonstration scenes for current MRTK features. ( Optional) Import the .unitypackage following the same steps as above.The extensions package provides a set of useful optional components for the MRTK. ( Optional) Import the .unitypackage following the same steps as the foundation package.unitypackage file, ensure all items to import are checked, and then select "Import". Import the .unitypackage you downloaded by going into "Asset -> Import Package -> Custom Package", select 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 ( Required for version-to-version upgrades, Optional otherwise) .unitypackageįor details on the packages and their contents, please see MRTK Packages.Run the HandInteractionExamples scene in the Unity Editor.Learn about the core building blocks of MRTK.XR SDK getting started guide (Unity 2019.3 or later).Switch your Unity project to the target platform.Import MRTK packages into your Unity project. Please see Using the Unity Package Manager for more information. Users of Unity 2019.4 and newer, can use the Unity Package Manager to import MRTK.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |