6 Configure and Export Packs
Before you start: Complete the Unity Integration Package installation in Chapter 5 and confirm that Unity compiles successfully. Save the three Actions and BallSpeed from Chapter 3.
Configure Harken Project in Unity#
In Unity, open Edit → Project Settings → Harken → Project.

Click Select beside Audio project directory and select the Harken Studio project folder,
E:\Harken projects\RollABall_Audio. Use your project's actual path; this is only an example.

Click Select to the right of Generated packs. Under the game project's
Assetsfolder, create a folder namedGeneratedPacks, then click Select Folder.

GeneratedPacks directory now shows the target folder.

Once configured, close Project Settings.

Set Studio's Output Folder and Export Packs#
Unity now knows where to read the audio packs. Next, tell Studio to export the sounds to the same folder: this tutorial uses Assets/GeneratedPacks in the Unity project. Configuring the folder in Unity does not automatically change Studio's output location.
Open the Audio Project and Project Settings#
Open Harken Hub → Projects, find
RollABall_Audiofrom Chapters 2 and 3, and click Open Project on its entry.
From the top menu of the Studio main window, choose File → Project Settings.... In the Project Settings window, click Publish on the left.


Set Studio's Audio Pack Export Folder#
Click Browse... to the right of the Publish Directory field.

In the folder picker, open your Unity project folder and select the
Assets/GeneratedPacksfolder created in the previous section, then click Select Folder. Select this folder itself, not its Windows subfolder; Studio creates the platform subfolder automatically during export.
The selected path now appears in the field.

Click Apply at the lower right to apply the change and return to the Studio main window.

Export Audio Packs for Windows#
Choose View → Publisher from Studio's top menu to display the Publisher window.


Open the Export Platforms dropdown at the bottom of Publisher. Click to clear the other three platforms, leaving only Windows checked, then close the list. General above lists the three Actions created in Chapter 3. They are checked by default and do not need to be selected again.

Included Action
Purpose
Play_SFX_Ball_Roll_LoopStart the rolling loop
Stop_SFX_Ball_Roll_LoopStop the rolling loop
Play_SFX_Ball_PickupTrigger a random pickup sound
Click the main Export Checked button at the lower right of Publisher to export the selected Windows audio packs.

Wait for each row to finish and confirm that Result shows Built for this export.

In Publisher, right-click Init, then click Show Pack in Explorer.


Open the Windows output folder and confirm that it contains Init.bytes / Init.json and a pair of .bytes / .json files for each of the three Actions.

Finally, close Publisher and save the project.
After this section: Studio has exported the Windows audio packs to Unity's Assets/GeneratedPacks folder. Continue to Chapter 7: Add Components and the Audio Script.