Skip to content

Commit 81b1874

Browse files
author
Paris Morgan
committed
highlighting fix
1 parent 236bf1b commit 81b1874

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/spatial-anchors/tutorials/tutorial-new-unity-hololens-app.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ To test out that everything is working, build your app in **Unity** and deploy i
8383
## Place an object in the real world
8484
Let's create & place an object using your app. Open the Visual Studio solution that we created when we [deployed our app](#trying-it-out).
8585

86-
First, add the following imports into your `<SolutionName>\Assembly-CSharp (Universal Windows)\Scripts\AzureSpatialAnchorsScript.cs`:
86+
First, add the following imports into your `Assembly-CSharp (Universal Windows)\Scripts\AzureSpatialAnchorsScript.cs`:
8787

8888
[!code-csharp[AzureSpatialAnchorsScript](../../../includes/spatial-anchors-new-unity-hololens-app-finished.md?range=19-24)]
8989

@@ -93,7 +93,7 @@ Then, add the following members variables into your `AzureSpatialAnchorsScript`
9393

9494
Next, add the following code into your `Start()` method. This code will hook up `GestureRecognizer`, which will detect when there is an air tap and call `HandleTap`.
9595

96-
[!code-csharp[AzureSpatialAnchorsScript](../../../includes/spatial-anchors-new-unity-hololens-app-finished.md?range=76-85,88&highlight=4,6,8,10))]
96+
[!code-csharp[AzureSpatialAnchorsScript](../../../includes/spatial-anchors-new-unity-hololens-app-finished.md?range=76-85,88&highlight=4-10)]
9797

9898
We now have to add the following `HandleTap()` method below `Update()`. It will do a ray cast and get a hit point at which to place a sphere.
9999

@@ -155,7 +155,7 @@ Now, let's hook your `initializeSession()` method into your `Start()` method.
155155

156156
Finally, add the following code into your `CreateAndSaveSphere()` method. It will attach a local Azure Spatial Anchor to the sphere that we're placing in the real world.
157157

158-
[!code-csharp[AzureSpatialAnchorsScript](../../../includes/spatial-anchors-new-unity-hololens-app-finished.md?range=311-337,390&highlight=16-32)]
158+
[!code-csharp[AzureSpatialAnchorsScript](../../../includes/spatial-anchors-new-unity-hololens-app-finished.md?range=311-337,390&highlight=16-31)]
159159

160160
Before proceeding any further, you'll need to create an Azure Spatial Anchors account Identifier and Key, if you don't already have them. Follow the following section to obtain them.
161161

0 commit comments

Comments
 (0)