Skip to content

Commit 69b5de4

Browse files
committed
rephrasing RequireComponent Note
1 parent 7e563b3 commit 69b5de4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ When you tap into an anchor, either created (green) or located (blue) a request
278278
Here is how the complete `AzureSpatialAnchorsScript` class file should look like, after all the different elements have been put together. You can use it as a reference to compare against your own file, and spot if you may have any differences left.
279279

280280
> [!NOTE]
281-
> You'll notice that we have included `[RequireComponent(typeof(SpatialAnchorManager))]` to the script, so Unity will make sure it has the SpatialAnchorManager script on the same GameObject.
281+
> You'll notice that we have included `[RequireComponent(typeof(SpatialAnchorManager))]` to the script. With this, Unity will make sure that the GameObject where we attach `AzureSpatialAnchorsScript` to, also has the `SpatialAnchorManager` attached to it.
282282
283283
[!INCLUDE [AzureSpatialAnchorsScript](../../../includes/spatial-anchors-new-unity-hololens-app-finished.md)]
284284

0 commit comments

Comments
 (0)