Questions tagged [mrtk]
The Microsoft MixedRealityToolkit (MRTK) is a collection of scripts and library components designed to help developers build applications for Windows Mixed Reality. Use this tag for questions about either the base MRTK or the Unity version.
351
questions
2
votes
1
answer
12
views
Delete button for object - MRTK
I have a question regarding Unity and mrtk. I need to create an object, which can be deleted via button push. This button should be attached to the object. Now there is the app bar which can be ...
0
votes
0
answers
18
views
Hololens 2 Multi-User Capabilities error DllNotFoundException: AzureSpatialAnchors
I've been following this tutorial https://docs.microsoft.com/en-us/windows/mixed-reality/develop/unity/tutorials/mr-learning-sharing-02 to make a Hololens 2 app that can be used by 2 or more users, ...
0
votes
1
answer
35
views
is it possible to access Hololens camera from Game mode in Unity?
I'm following this tutorial to take a picture using the Hololens 2 camera and show it using a billboard (Quad object). When I try to run that code, even using Holographic Emulation and playing the ...
0
votes
0
answers
22
views
Unity3d lineRenderer is invisible on some parts
I have 3 Spheres and a lineRenderer which is connected to the spheres. I'm using Bezier curves to get a smooth curves between the spheres.
The code is looking like this:
using System.Collections;
...
0
votes
0
answers
30
views
Unity Error: "Native error = The system can not find the stated file."
I created a Unity app with MRTK and try to build the Appx file with the MRTK build window. But when I press the "Build Appx" butten I get this error
Win32Exception: ApplicationName='cmd.exe',...
2
votes
4
answers
67
views
the type or namespace name 'mixedreality' does not exist in the namespace 'microsoft' (are you missing an assembly refrence?)
I am currently developing an app for the Hololens 2 with Unity and mrtk. I am trying to get the Gaze direction from the GazeProvider.cs which is attached to the camera, because i want to spawn objects ...
0
votes
1
answer
52
views
OpenXR FOV in Unity Editor too small for Hololens 2
I have a problem after switching from Unity integrated XR to Open XR when using Holoremoting. The Unity Editor FOV 29 deg, although the Hololens 2 FOV is 54 deg. Unity Screenshot How can I increase ...
0
votes
0
answers
17
views
OnHandMeshUpdated() not triggered in Mixed Reality Toolkit
I'm working on a Mixed Reality app in Unity.
I'm trying to update my own hand mesh according to:
https://docs.microsoft.com/en-us/windows/mixed-reality/mrtk-unity/features/input/hand-tracking?view=...
0
votes
0
answers
62
views
How to get the qrcode location over holographic remoting from the Hololens 2
I have a Unity application which callibrates some objects with a qrcode in the world. The qrcode handling is based on the MixedReality-QRCode-Sample. It works very good as a native app on the Hololens....
0
votes
0
answers
19
views
Problems scrolling a ScrollingObjectCollection that changed the content at runtime
I've a ScrollingObjectCollection like the one in the examples with the same hierarchy, ScrollingObjectCollection -> Container -> GridCollection.
I'm populating the collection at runtime, and ...
0
votes
1
answer
50
views
Is possible use Microsoft Graph API in a UWP app on HoloLens in order to initiate a video call through Microsoft Teams?
I would like to use Microsoft Teams to start a video call using HoloLens device with another people (using a PC).
I have and UWP app that I can install on HoloLens device, I would like to use ...
1
vote
1
answer
41
views
MRTK increasing pointer extent
I'm trying to extend the maximum depth of the pointers to use in a scene where objects can be further away. I've set the 'pointing extent' setting under the MixedRealityPointerProfile which seems to ...
0
votes
1
answer
58
views
Hololens 2 Eye Tracking LayerMask
I want the eyetracking system to see all layers except "Built in Layer 7", how can I do it? I wrote a code like this but it doesn't work.
void Start()
{
int layerMask = 1 << 8;
...
0
votes
1
answer
82
views
MRTK Spatial Awareness - How to access Runtime Spatial Mesh Prefab?
I am trying to access the Runtime Spatial Mesh Prefab with another GameObject to activate its automatic Pulsing for the time I am placing an object with the TapToPlace Script.
The spatial Mesh Prefab ...
0
votes
1
answer
49
views
Accessing eye gaze timestamp from HoloLens 2 in Unity (for Holographic Remoting)
I'm trying to get the timestamps of the eye gaze data from HoloLens 2 using eyeGazeProvider.Timestamp. According to the documentation, this should return the time when "the signal was last ...
0
votes
1
answer
121
views
MRTK Photon Unity Networking 'AnchorModuleScript' namespace not found
While following the mrtk tutorial on multi-user capabilities, there has been one CS0246 error that I haven't been able to avoid.
After importing PUN 2 from the asset store, all CS0246 errors from ...
0
votes
0
answers
38
views
MRTK - Leap Motion hand not tracking constraint palm up
When I attach the hand menu to a hand and enable it with HandConstraintPalmUp component it works fine with simulated hand but I cannot make it work with MotionLeap. I am using LeapMotion configuration ...
0
votes
1
answer
105
views
Eye gaze data at a fixed rate using Holographic Remoting
I'm trying to obtain the eye tracking data at a fixed frame rate (30 Hz, as provided by the eye tracker in HoloLens2) and not tied to the Update() function of Unity because the rendering frame rate of ...
0
votes
1
answer
78
views
MRTK 2.7.3 - Outline Shader is not visible on HoloLens
I saw the scene OutlineExamples in the MRTK examples package and recreated it in my own project.
The outlining works if I stay in unity in play mode. But if I deploy it on the HoloLens the object does ...
1
vote
2
answers
162
views
MRTK hand tracking does not work properly with Oculus Link
I am creating a VR game in Unity.
I am having a problem with hand tracking not working properly with PCVR (.exe build) only.
The detailed situation is as follows
I have developed a game using Unity, ...
0
votes
1
answer
23
views
Defining custom state list
When I attach Interactable component to my prefab, I can choose one (or more) of 4 state blueprints, such as DefaultInteractableStates.asset. Although it contains 4 defined states, I would need to ...
0
votes
1
answer
19
views
MRTK - Get state of Interactible object
I am trying to get objects with a certain state. I set a tag to objects I want to check and I wrote a code something like this:
GameObject[] objects = GameObject.FindGameObjectsWithTag("GraphNode&...
5
votes
3
answers
420
views
Unity HoloLens 2 deployed App stuck loading
I am trying to deploy an app from Unity 2020.3.32f1 to the Hololens 2 with Visual Studio 2022 over USB. Everytime I try to deploy the app, it builds and deploys through visual studio correctly before ...
0
votes
1
answer
92
views
MRTK eye tracking layer mask
I want to prevent the eye tracking ray from seeing some objects, how can I do that?
This object must contain a collider and must be interactable. So I can't delete the collider component.
I think I ...
0
votes
1
answer
109
views
MRTK Hololens 2 Unity: How can I spawn a Tooltip at runtime?
In my MRTK Testing App I spawn multiple GameObjects(Interactables) with information from a small API. I now want to show the GameObject names in a tooltip when they get focused by anything.
After a ...
0
votes
1
answer
77
views
Leap motion in MRTK
I tried all in this main step resource, but I cannot get leapmotion to work in MRTK.
I download the foundation packege with the Mixed Reality Feature Tool but I keep getting this error in the editor ...
0
votes
1
answer
86
views
Hololens 2 emulator failed with Alternating reasons
So i have been building Windows Mixed Reality ToolKit (MRTK) example project in Unity, and than attempt to deploy it to the Hololens 2 emulator from the Visual Studio 2019 editor, but every time it ...
0
votes
0
answers
111
views
How to Fix -Unity 2020.3.30.f1 + MRTK + openXR = Error: CS0108: 'HololensHand.trackingState' hides inherited member 'TrackedDevice.trackingState'
I am running Unity 2020.3.30.f1 + MRTK Example project, when I follow prompts to import OpenXR plugin for Microsoft Hololens feature group I receive this error:
.cs(82,31): error CS0108: 'HololensHand....
0
votes
0
answers
96
views
Hololens 2 eye tracking
I am trying to recreate human prefab as it joins my Unity app through Photon. I want to track user eyes on its head model so that other users can see, where he is looking. I know that Hololens 2 has ...
0
votes
1
answer
114
views
Open PDF in Hololens (Unity)
Good afternoon!
I'm trying to open a pdf located into knownfolders in an UWP Hololens app without results...
Does anyone know how to proceed?
I managed to open it and retrieve its page number by using:...
0
votes
0
answers
57
views
Sticky Object is not rotating in the right way in Unity3D
I'm using Unity3D with MRTK for Hololens 2 development.
As you can see in the picture I gat a Square-Gameobject and a AppBar-Gameobject. The Square hast MRTK BoundsControl attached to it which make it ...
0
votes
0
answers
71
views
Can't create an .appx because of C++ Initialization-errors
I am relatively new to the AR topics. I successfully completed the MRTK Tutorial (Introduction to the Mixed Reality Toolkit-Set Up Your Project and Use Hand Interaction - Learn | Microsoft Docs) and ...
-1
votes
1
answer
249
views
Is it possible to create UI element with Unity's UI Toolkit for Hololens 2?
In my project, I have created UI elements with the UI Toolkit from Unity.
Now I want to get this working on the Hololens 2.
However, when I run it, the UI elements are not visible.
But in Unity you ...
1
vote
1
answer
163
views
Make a GameObject stick to another GameObjects border in Unity
I'm using Unity3D with MRTK for Hololens 2 development.
As you can see in the picture I gat a Square-Gameobject and a AppBar-Gameobject. The Square hast MRTK BoundsControl attached to it which make it ...
0
votes
0
answers
52
views
Unity MRTK: game view shows only white square
I have a Problem. I installed and configurated MRTK for unity. I also installed three buttons in the scene in front of the main camera. When I start the game view with play, I only see a white square, ...
0
votes
0
answers
482
views
"ArgumentNullException: Value cannot be null" when I spawn a shader in Unity3D
I work with Unity3D (2020.3.26f1), MRTK and Hololens2.
In my case I have a unity scene that contains a button. If the user clicks the button, an image should be taken via the HoloLens 2 webcam and ...
-1
votes
1
answer
67
views
How can I maintain an object's velocity after release in Unity Hololens 2?
I'm looking not so much for a throw as just maintaining motion after a ball is released by the hand in Hololens 2. Currently, I'm using the MRTK IMixedRealityTouchHandler interface, mainly the ...
-1
votes
1
answer
83
views
Spatial Mapping in Unity for Hololens 1
Good morning,
I am trying to install the Mixed Reality Toolkit for Hololens 1. I need to do a Spatial Mapping in Unity and I would like to use a "Spatial Mapping" prefab which should be ...
0
votes
1
answer
37
views
Exception "Hybrid player not valid" when trying to deploy an app using Azure Remote Rendering to Hololens2
I am developing an app for Hololens2 with Unity, Mixed Reality Toolkit and Azure Remote Rendering. Something with ARR (probably a misconfiguration) produces a deploy-time error:
*** Assertion ***
...
0
votes
0
answers
36
views
Test speech input for MRTK with Unity Test Framework
I would like to write a unit test for a custom speech input. Unfortunately the documentation from Microsoft does not help me. I only found this example in the MRTK package.
[UnityTest]
public ...
1
vote
1
answer
102
views
HoloLens - Is there a possibility to combine MRTK and HoloLens2ForCV?
I am starting a project where I need the following two things:
raw sensor data from the HoloLens 2 to create a point cloud
functionality and ui from MRTK
The thing is that I'm using MRTK in a Unity ...
0
votes
1
answer
50
views
Issues writing files to Hololens Documents directory. DirectoryNotFoundExcpetion
When using the HoloLens2 emulator, I am able to successfully generate my .csv files to my desktop path (e.g. C:\Users\name\Desktop); however, I get a DirectoryNotFoundException error when I use the ...
0
votes
1
answer
41
views
As soon as I stack more than 3 cubes, they start to bounce and slide. How can I fix this?
I am currently building a simple mixed reality application in Unity where you should be able to stack different sized cubes on top of each other. As soon as I add a third cube though, the collision ...
-2
votes
1
answer
50
views
Best way to duplicate a gameobject in unity 2019.4.23 (MRTK)
I was just wondering what the best way would be to duplicate game object in unity (MRTK) making sure that both gameobjects functions the same.
0
votes
1
answer
167
views
How to convert a standard Unity Canvas so that the buttons can receive inputs via the Hololens 2?
I am currently working with the MRTK on Unity and try to set up and interactible menu for the Hololens 2.
I have a canvas with multiple pressable buttons on it (pressing a button opens a new canvas).
...
0
votes
1
answer
130
views
MRTK V2.6.1 - Getting DirectoryNotFoundException after fresh install of mrtk
I have set up a new Unity project with MRTK today. I'm using Unity 2020.3.26 and MRTK 2.6.1. I installed MRTK via the Microsoft Mixed Reality Feature Tool.
Immediately after installation, as usual ...
0
votes
0
answers
33
views
MRTK + Azure Cloud Crashing when deploying to Hololens 2
Im working on integrating the Azure Custom Vision in to a project and i started following the tutorials on
Hololens 2 - Azure cloud services tutorials
i've created the storage and also the custom ...
0
votes
0
answers
98
views
Unity - MRTK Invalid serialized file header error when building
While developing on a Unity cross-platform, mixed reality project that uses Mixed Reality Toolkit (MRTK) I ran into strange errors while building.
The error states:
Invalid serialized file header. ...
0
votes
1
answer
87
views
Unity3D: Position objects relative to Vuforia Image marker im multiple scenes
I have two scenes:
Scene1: User has to track Image marker.
Scene2: Display Objects relative to the image marker scanned in Scene1.
In Scene1 i attached "Vuforia Behaviour Script" to the MRKT ...
1
vote
0
answers
303
views
HoloLens 2 and MRTK 2 now allowing spatial mapping
----------- EDIT ---------------
I was able to get it to work by disabling OpenXR and enabling Windows Mixed Reality plugin.
This will be a temporary fix but, I would prefer not to use a plugin that ...