O'Reilly logo

HoloLens Beginner’s Guide by Jason Odom

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Let's wire this sucker up

Select the AppManager object and double-click on the ApplicationManager script to open it up in Visual Studio.

Once there, we need to add the following:

public TextMesh debugTextMesh;
public string debugInfoString = "DebugInfo:";

Back in Unity in the Application Manager, the empty slot Debug Text Mesh should appear; drag and drop your DebugInfo object to that slot, as follows:

Great, one last line of code.

Move down to the first empty space in the Start() function and add debugTextMesh.text = debugInfoString;.

This connects our string to our prefab textbox.

Move or hide the other two 3DTextPrefabs and click on the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required