Opening document…

The interface could not load. You can still read below. Retry

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#

  1. In Unity, open Edit → Project Settings → Harken → Project.

    image.png

  2. 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.

    image.png
    image.png

  3. Click Select to the right of Generated packs. Under the game project's Assets folder, create a folder named GeneratedPacks, then click Select Folder.

    image.png
    image.png

    GeneratedPacks directory now shows the target folder.

    image.png

    Once configured, close Project Settings.

    image.png

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#

  1. Open Harken Hub → Projects, find RollABall_Audio from Chapters 2 and 3, and click Open Project on its entry.

    image.png

  2. From the top menu of the Studio main window, choose File → Project Settings.... In the Project Settings window, click Publish on the left.

    image.png
    image.png

Set Studio's Audio Pack Export Folder#

  1. Click Browse... to the right of the Publish Directory field.

    image.png

  2. In the folder picker, open your Unity project folder and select the Assets/GeneratedPacks folder 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.

    image.png

    The selected path now appears in the field.

    image.png

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

    image.png

Export Audio Packs for Windows#

  1. Choose View → Publisher from Studio's top menu to display the Publisher window.

    image.png
    image.png

  2. 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.

    image.png

    Included Action

    Purpose

    Play_SFX_Ball_Roll_Loop

    Start the rolling loop

    Stop_SFX_Ball_Roll_Loop

    Stop the rolling loop

    Play_SFX_Ball_Pickup

    Trigger a random pickup sound

  3. Click the main Export Checked button at the lower right of Publisher to export the selected Windows audio packs.

    image.png

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

    image.png

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

    image.png
    image.png

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.

image.png

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.