June 2017
Beginner to intermediate
336 pages
8h 44m
English
Add the following line of code with in the DownloadAndProcessAssets() method itself, just post the when launchedObject initialization. This add a BoxCollider component to the launchedObject, so that you can gazed on it. Post that, Add the WorldAnchorManager and TapToPlaceScript with the object. These two scripts are part of the HoloToolkit and you can find them in HoloToolkit | Utilities | Scripts and HoloToolkit | SpatialMapping | Scripts respectively.
BoxCollider boxCollider = launchedObject.AddComponent<BoxCollider>(); boxCollider.size = new Vector3(0.50f, 0.50f, 0.25f); launchedObject.AddComponent<WorldAnchorManager>(); launchedObject.AddComponent<TapToPlace>();
In the Unity Editor, go back to ...
Read now
Unlock full access