MRTK — No Controllers in the Tutorial?

Today I was following the basic setup tutorial for the Mixed Reality Tool Kit (MRTK). However, I hit a problem, I didn’t see any controllers and the little ‘Hello World’ cube was just stuck on the screen.

No Controllers :(

I looked around for the some sort of controller component but could not find anything obvious. So I figured I would just build it and see if works okay on the Hololens emulator. It built okay but the app did not launch properly. Looking at the log I spotted the offending line;

NearInteractionGrabbable requires a BoxCollider, SphereCollider, CapsuleCollider or a convex MeshCollider on an object.

That is odd because the instructions in the tutorial state;

‘For the purpose of this tutorial, colliders have already been added to the Cube Object.’

Time to investigate.

I opened the Near Interaction Grabbable script by selecting the ‘Edit Script’ menu from the Inspector.

Aha, so it is using ‘GetComponents’ and not ‘GetComponentsInChildren’. Now for the prefab;

Root of the Prefab
The first Collider

GetComponent on the root Game Object is not going to find any Colliders.

So I simply added a Box Collider to the Game Object…

Yay a controller

Unity, VR, Enterprise and .Net Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

OmniVAULT — New BTC Vaults

A Plan Forward for Classkick

Journal 22 — Retro Game Over in Unity

Dataverse has integrated the SDK for the “Shanghai Metaverse Week · MOCA exhibition ”

Bankruptcy Attorney Salt Lake City

How I classify Tasks for my Team using Eisenhower Matrix Decision tree

Type Wars: The Empire Strikes Back

How to make HUD for thrusters in Unity game

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Paul Marsh

Paul Marsh

Unity, VR, Enterprise and .Net Developer

More from Medium

Galaxy Shooter 2D — Ray Cast

Switch Statements To The Rescue!

Script communication in unity using GetComponent:

New Enemy Movement Behavior