Add the MRTK to each scene using Mixed Reality Toolkit > Add to Scene and Configure.NOTE: The remaining steps 4-6 are only if you are setting up an empty project. In the Default Orientation dropdown, ensure that Landscape Left is selected.Disable Run in Background so that Vuforia pauses when the app is put into the background and can access the camera again when the app is resumed.In the Publishing Settings, expand the Resolution and Presentation section.Under Supported Device Families, ensure that Holographic is selected.NOTE: SpatialPerception should only be selected if you intend to use the Surface Observer API. Under Capabilities ensure that Internet Client, WebCam, Microphone, and SpatialPerception are selected.These can also be set manually in Build Settings -> Player Settings -> Publishing Settings: In the top bar, select Mixed Reality -> Toolkit -> Utilities -> Configure Project for MRTK and auto-apply the default settings.You can optionally Import any other MRTK feature into your Unity project with the Mixed Reality Feature Tool the same way as you added the OpenXR Plugin. TIP: Study the VuforiaAdditiveSceneLoader.cs and how Vuforia Engine is working alongside the MRTK Scene System in multiple scenes. IMPORTANT: Unity needs to be restarted after importing the sample to resolve a known linking issue. This will install both Vuforia Engine, the Vuforia sample material and the MRTK assets Download and then Import the Vuforia Package.In the Package Manager, select My Assets.Select Mixed Reality -> Project and Apply the recommended scene settings for HoloLens 2, this will add a Tracked Pose Driver to the ARCamera GameObjectĪdd the Vuforia HoloLens Unity Sample to your assets in the Asset Store.Replace the MainCamera with GameObject -> Vuforia Engine -> ARCamera.Add Vuforia Engine either through the Package Manager if you have the package added to My Assets, or, Download the *.unitypackage for Vuforia Engine here and import it into your project via Assets -> Import Package -> Custom Package.NOTE: Steps 5 and 6 are necessary to do for each new project that targets HoloLens development.Īdd Vuforia, HoloLens Sample, and MRTK Set up Vuforia manually In Unity, press Yes to the message on updating the project to the new input system.Click Import and Approve to add the selected dependencies to the project packages and manifest in your Unity project. Select the latest version of the Mixed Reality Toolkit Foundation in the Mixed Reality Toolkit category and the Mixed Reality OpenXR Plugin in the category Platform Support.With the tool, you select your Unity project (for example an empty project) and press Discover Features.Download and install the Mixed Reality Feature Tool and follow Microsoft’s guide to discover and import features into a selected Unity project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |