Importing and playing notes

Of course, in order to use our new Keyboard script, we are going to need some notes recorded for at least one instrument. Let's get back into Unity and import some tunes by following the following exercise:

  1. From the menu, select Assets | Import Package | Custom Package.... A file explorer dialog will open. Use the dialog to find the book's downloaded source code for Chapter_2_Assets and a file inside called Chapter_2_Keyboard_Tunes.unitypackage. Select the file and click on the Open button to begin importing the asset.
  2. A progress dialog will quickly flash showing the asset being decompressed and then the Import Unity Package dialog will be shown as follows:
Import Unity Package importing keyboard tunes
  1. Click ...

Get Game Audio Development with Unity 5.X now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.