Hello!

Yesterday I was lucky enough to be part of an online / virtual meeting with other Hololens developers. One of them teach us the correct way to use packages in Unity. In fact, the example that he said (and I share here) is based on the way we must use HoloToolkit.

I have written some posts on HoloToolkit, I usually copy the HoloToolkit assets to the directory [Assets] in a Unity 3D project and it works. However there is a better way to do this, a much better way. So, I will describe the steps required in 3 samples scenarios working with HoloToolkit.

Create a HoloToolkit Unity Package

  • Clone / download the latest version of HoloToolkit from GitHub
  • Open Unity and select the option “Open project”
  • Select the folder “HoloToolkit-Unity-master”

clipboard03

  • Unity will create a new project and it will include the contents of HoloToolkit in the Assets
  • In the Projects pane, select the Assets folder, display the shortcut menu and select the option [Export Package]

clipboard05

  • Select the items to be exported. By default, it is advisable to leave all selected, but if you already have experience with these Assets you can create a custom package

clipboard06

  • Select the directory and destination and create the Unity Package
  • Personally, I’d rather have a package for each set of big changes that exist in HoloToolkit, so that I add the suffix year, month and day to each package

clipboard08

  • Done !

Now you can close Unity and start to work with this package in a new Unity project

Use the HoloToolkit Unity Package in a Unity project

  • Create a new 3D project in Unity
  • Now we must import the HoloToolkit package. Select the menu [Assets / Import Package / Custom Package]

clipboard11

  • This option will show us the elements of the Unity Package we want to import. For this sample, I will import one package a couple of weeks old to show the correct way of update a package later.

clipboard12

  • At this time, Unity is responsible for importing all the elements (this is similar to copy all the files in the Assets directory)
  • Once imported, you can see all the items in the Assets directory

clipboard14

  • We can now begin to work with the HoloToolkit assets in our Unity project

Update a HoloToolkit package in Unity

  • In this scenario we will perform the same steps to import a package
  • The important point here, is when there are changes in the package. We will we be warned when we are going to import the package
  • For example in the picture below you can see changes in the file [Build / Editor / BuildDeployWindow.cs] and new files in [Imput / Plugins / … ]

clipboard15

  • This allows us to know the changes which exist between different versions of a package, and also to select the items that we want to use

 

And this is the correct way to work with Unity Packages applied to HoloToolkit.

Greetings @ Toronto

El Bruno

References

45 responses to “#Hololens – This is the right way to work with #Unity packages and #HoloToolkit”

  1. […] El Bruno, How to Import the HoloToolkit Unity […]

    Like

  2. […] El Bruno, How to Import the HoloToolkit Unity […]

    Like

  3. […] Efectivamente, sobre esto ya hablé alguna vez. Sobre la necesidad de crear y actualizar “a mano” el package de HoloToolkit si queremos utilizar alguna de sus funcionalidades nuevas. La mejor forma de hacerlo la escribí en un post, “Hololens – This is the right way to work with #Unity packages and HoloToolkit“. […]

    Like

  4. […] Indeed, on this, I already wrote some time ago. On the need to manually create and update the HoloToolkit package, if we want to use any of its new features. The best way to do this is on this post, “Hololens – This is the right way to work with #Unity packages and HoloToolkit“. […]

    Like

  5. […] El Bruno, How to Import the HoloToolkit Unity […]

    Like

  6. […] El Bruno, How to Import the HoloToolkit Unity […]

    Like

  7. […] Hace un tiempo expliqué cómo utilizaba HoloToolkit en mis proyectos: exportaba los contenidos en un paquete de Unity 3D y luego los importaba en mis proyectos (link). […]

    Like

  8. […] A while ago I wrote on how to use HoloToolkit in my projects: I export the latest version of HoloToolkit-Unity in a Unity 3D package and then imported them into my Unity 3D projects (link). […]

    Like

  9. […] El Bruno, How to Import the HoloToolkit Unity […]

    Like

  10. […] El Bruno, How to Import the HoloToolkit Unity […]

    Like

Leave a reply to #Hololens – Moviendo Hologramas #XBoxOne Controller – El Bruno Cancel reply

Discover more from El Bruno

Subscribe now to keep reading and get access to the full archive.

Continue reading